EnvironmentListModel constructor

EnvironmentListModel({
  1. Iterable<EnvironmentInfoModel>? environments,
  2. String? selectedEnvironment,
})

Implementation

factory EnvironmentListModel({
  $core.Iterable<EnvironmentInfoModel>? environments,
  $core.String? selectedEnvironment,
}) {
  final _result = create();
  if (environments != null) {
    _result.environments.addAll(environments);
  }
  if (selectedEnvironment != null) {
    _result.selectedEnvironment = selectedEnvironment;
  }
  return _result;
}