You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After generating the following mock class: class _FakeTextStyle extends _i1.Fake implements _i12.TextStyle {}
This error occurred: 'Object.toString' ('String Function()') isn't a valid concrete implementation of 'Diagnosticable.toString' ('String Function({DiagnosticLevel minLevel})')
It happened due to the toString method on Diagnosticable dependent classes, as TextStyle being one, having a different format, needing a DiagnosticLevel as param. This simple solution did the trick, but it was necessary to edit the generated file:
After generating the following mock class:
class _FakeTextStyle extends _i1.Fake implements _i12.TextStyle {}
This error occurred:
'Object.toString' ('String Function()') isn't a valid concrete implementation of 'Diagnosticable.toString' ('String Function({DiagnosticLevel minLevel})')
It happened due to the
toString
method onDiagnosticable
dependent classes, asTextStyle
being one, having a different format, needing aDiagnosticLevel
as param. This simple solution did the trick, but it was necessary to edit the generated file:The text was updated successfully, but these errors were encountered: