INNER CODE UNIT · Dart

PropertyOption

bluefireteam/dashbook · lib/src/story.dart:127

class PropertyOption<T> {
  const PropertyOption(this.label, this.value);

  final String label;
  final T value;

  @override
  String toString() => label;
}

class DashbookContext {
  final Map<String, Property<Object?>> properties = {};
  final Map<String, void Function(BuildContext)> actions = {};

  void action(String name, void Function(BuildContext) callback) {
    actions[name] = callback;
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…