EnvironmentListModel constructor
EnvironmentListModel({
- Iterable<
EnvironmentInfoModel> ? environments, - 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;
}