replace runtimeType.toString() (#48892)
This commit is contained in:
parent
5a072a9365
commit
c195b771cc
@ -1049,7 +1049,7 @@ class CupertinoDynamicColor extends Color with DiagnosticableMixin implements Di
|
||||
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
|
||||
|
@ -322,7 +322,7 @@ class Ticker {
|
||||
@override
|
||||
String toString({ bool debugIncludeStack = false }) {
|
||||
final StringBuffer buffer = StringBuffer();
|
||||
buffer.write('$runtimeType(');
|
||||
buffer.write('${objectRuntimeType(this, 'Ticker')}(');
|
||||
assert(() {
|
||||
buffer.write(debugLabel ?? '');
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user