Skip to content

Instantly share code, notes, and snippets.

@evanweible-wf
Created April 5, 2023 23:32
Show Gist options
  • Select an option

  • Save evanweible-wf/f9205b9e50895aaa81cb1e27419280bc to your computer and use it in GitHub Desktop.

Select an option

Save evanweible-wf/f9205b9e50895aaa81cb1e27419280bc to your computer and use it in GitHub Desktop.
dashing-kingdom-4998

dashing-kingdom-4998

Created with <3 with dartpad.dev.

class DisposableWCommonV2 {
Future<Null> onDispose() async {}
}
class DisposableWCommonV3 {
Future<void> onDispose() async {}
}
class NullTypeOnV2 extends DisposableWCommonV2 {
@override
Future<Null> onDispose() async {}
}
class NullTypeOnV3 extends DisposableWCommonV3 {
@override
Future<Null> onDispose() async {}
}
class VoidTypeOnV2 extends DisposableWCommonV2 {
// Invalid override, but would never happen (interface already exists, no one can consume it and type as Future<void>)
// @override
// Future<void> onDispose() async {}
}
class VoidTypeOnV3 extends DisposableWCommonV3 {
@override
Future<void> onDispose() async {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment