gets<T extends Object?> static method

List<T> gets<T extends Object?>(
  1. String key, {
  2. String? path,
  3. List<T>? defaultValue,
  4. EnvironmentType? environment,
  5. PlatformType? platform,
  6. T? parser(
    1. Object?
    )?,
  7. T? modifier(
    1. T
    )?,
})

Implementation

static List<T> gets<T extends Object?>(
  String key, {
  String? path,
  List<T>? defaultValue,
  EnvironmentType? environment,
  PlatformType? platform,
  T? Function(Object?)? parser,
  T? Function(T)? modifier,
}) {
  List<T>? value = getsOrNull(
    key,
    path: path,
    defaultValue: defaultValue,
    environment: environment,
    platform: platform,
    parser: parser,
    modifier: modifier,
  );
  if (value != null) return value;
  throw UnimplementedError("${List<T>} didn't get from this ${i._name}");
}