get method

String get(
  1. String name, {
  2. String? fallback,
})

Implementation

String get(String name, {String? fallback}) {
  final value = maybeGet(name, fallback: fallback);
  if (value == null) {
    throw AssertionError(
        '$name variable not found. A non-null fallback is required for missing entries');
  }
  return value;
}