Commit c195b771 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by Flutter GitHub Bot

replace runtimeType.toString() (#48892)

parent 5a072a93
...@@ -1049,7 +1049,7 @@ class CupertinoDynamicColor extends Color with DiagnosticableMixin implements Di ...@@ -1049,7 +1049,7 @@ class CupertinoDynamicColor extends Color with DiagnosticableMixin implements Di
if (_isPlatformBrightnessDependent && _isHighContrastDependent && _isInterfaceElevationDependent) toString('darkHighContrastElevatedColor', darkHighContrastElevatedColor), if (_isPlatformBrightnessDependent && _isHighContrastDependent && _isInterfaceElevationDependent) toString('darkHighContrastElevatedColor', darkHighContrastElevatedColor),
]; ];
return '${_debugLabel ?? runtimeType.toString()}(${xs.join(', ')}, resolved by: ${_debugResolveContext?.widget ?? "UNRESOLVED"})'; return '${_debugLabel ?? objectRuntimeType(this, 'CupertinoDynamicColor')}(${xs.join(', ')}, resolved by: ${_debugResolveContext?.widget ?? "UNRESOLVED"})';
} }
@override @override
......
...@@ -322,7 +322,7 @@ class Ticker { ...@@ -322,7 +322,7 @@ class Ticker {
@override @override
String toString({ bool debugIncludeStack = false }) { String toString({ bool debugIncludeStack = false }) {
final StringBuffer buffer = StringBuffer(); final StringBuffer buffer = StringBuffer();
buffer.write('$runtimeType('); buffer.write('${objectRuntimeType(this, 'Ticker')}(');
assert(() { assert(() {
buffer.write(debugLabel ?? ''); buffer.write(debugLabel ?? '');
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment