Dart defines implicit interfaces. What does this mean?
In your app you’d have:
class Session {
authenticate() { // impl }
}
or
abstract class Session {
authenticate();
}
And for example in tests:
class MockSession implements Session {
authenticate() { // mock impl }
}
No need to define a separate interface, just use regular or abstract classes!