Skip to content

Instantly share code, notes, and snippets.

@haashem
Last active May 21, 2022 06:34
Show Gist options
  • Save haashem/46e5b679500fe86ed0e431a4ca6ed429 to your computer and use it in GitHub Desktop.
Save haashem/46e5b679500fe86ed0e431a4ca6ed429 to your computer and use it in GitHub Desktop.
property observation in Dart
/// Is Naurt's Locomotion running at the moment?
Future<bool> isRunning() {
throw UnimplementedError('isRunning() has not been implemented.');
}
ValueChanged<bool>? onRunning;
/// Streams location changes
Stream<NaurtLocation> get onLocationChanged {
throw UnimplementedError('onLocationChanged has not been implemented.');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment