INNER CODE UNIT · Dart

ExecutionMode

amake/orgro · lib/main.dart:61

class ExecutionMode extends InheritedWidget {
  static ExecutionMode of(BuildContext context) =>
      context.dependOnInheritedWidgetOfExactType<ExecutionMode>()!;

  const ExecutionMode({required this.isTest, super.key, required super.child});

  final bool isTest;

  @override
  bool updateShouldNotify(ExecutionMode oldWidget) =>
      isTest != oldWidget.isTest;
}

// Not the "real" splash screen; just something to cover the blank while waiting
// for Preferences to load
class _Splash extends StatelessWidget {
  const _Splash();
  @override

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…