blob: b279700fa6d20fddd29814eee91890acb850b501 [file] [log] [blame]
/// Whether to generate null safe code.
bool generateNullSafeCode = false;
/// String representing `?` in optionally-null-safe code.
///
/// If generating null safe code, returns `?`. Otherwise returns ``.
String get orNull => generateNullSafeCode ? '?' : '';
/// String representing `!` in optionally-null-safe code.
///
/// If generating null safe code, returns `!`. Otherwise returns ``.
String get notNull => generateNullSafeCode ? '!' : '';