diff --git a/lib/config/runtime_args.dart b/lib/config/runtime_args.dart new file mode 100644 index 00000000..79099b68 --- /dev/null +++ b/lib/config/runtime_args.dart @@ -0,0 +1,7 @@ +import 'dart:io'; + +// A class where you should put runtime arguments +abstract class RuntimeArgs { + static bool get isInTest => + Platform.environment.containsKey('FLUTTER_TEST') || const String.fromEnvironment('FLUTTER_TEST').isNotEmpty; +}