Skip to content

DiagnosticableMixin.toString' ('String Function({minLevel: DiagnosticLevel}) isnt a valid override of 'Mock.toString' ('String Function()'). #233

Closed
@SenadK95

Description

@SenadK95

'Hello i keep getting the following error while using mockito :

DiagnosticableMixin.toString' ('String Function({minLevel: DiagnosticLevel}) isnt a valid override of 'Mock.toString' ('String Function()').

i already tried :
abstract class MockWithExpandedToString extends Mock {
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.debug });
}
but this didn't work for me.

import 'package:mockito/mockito.dart';
class TestData extends MockWithExpandedToString implements BookingFormState {}

anyone knows how to fix this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-questionA question about expected behavior or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions