2022-08-24 23:45:02 +00:00
|
|
|
part of 'server_volume_cubit.dart';
|
|
|
|
|
|
|
|
class ApiServerVolumeState extends ServerInstallationDependendState {
|
2022-09-02 05:59:46 +00:00
|
|
|
const ApiServerVolumeState(
|
|
|
|
this._volumes,
|
|
|
|
this.status,
|
|
|
|
this.usesBinds,
|
|
|
|
);
|
2022-08-24 23:45:02 +00:00
|
|
|
|
|
|
|
const ApiServerVolumeState.initial()
|
2022-09-02 05:59:46 +00:00
|
|
|
: this(
|
|
|
|
const [],
|
|
|
|
LoadingStatus.uninitialized,
|
|
|
|
null,
|
|
|
|
);
|
|
|
|
|
2022-08-24 23:45:02 +00:00
|
|
|
final List<ServerDiskVolume> _volumes;
|
2022-09-02 05:59:46 +00:00
|
|
|
final bool? usesBinds;
|
2022-08-24 23:45:02 +00:00
|
|
|
final LoadingStatus status;
|
|
|
|
|
|
|
|
List<ServerDiskVolume> get volumes => _volumes;
|
|
|
|
|
|
|
|
ApiServerVolumeState copyWith({
|
|
|
|
final List<ServerDiskVolume>? volumes,
|
|
|
|
final LoadingStatus? status,
|
2022-09-02 05:59:46 +00:00
|
|
|
final bool? usesBinds,
|
2022-08-24 23:45:02 +00:00
|
|
|
}) =>
|
|
|
|
ApiServerVolumeState(
|
|
|
|
volumes ?? _volumes,
|
|
|
|
status ?? this.status,
|
2022-09-02 05:59:46 +00:00
|
|
|
usesBinds ?? this.usesBinds,
|
2022-08-24 23:45:02 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
@override
|
2022-09-02 05:59:46 +00:00
|
|
|
List<Object?> get props => [_volumes, status, usesBinds];
|
2022-08-24 23:45:02 +00:00
|
|
|
}
|