mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 17:11:14 +00:00
refactor: Make sure that blocs use sealed classes
This commit is contained in:
parent
710b9b53dd
commit
e5f00f8770
|
@ -1,6 +1,6 @@
|
|||
part of 'services_bloc.dart';
|
||||
|
||||
abstract class ServicesEvent extends Equatable {
|
||||
sealed class ServicesEvent extends Equatable {
|
||||
const ServicesEvent();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
part of 'services_bloc.dart';
|
||||
|
||||
abstract class ServicesState extends Equatable {
|
||||
sealed class ServicesState extends Equatable {
|
||||
ServicesState({final List<ServiceLock> lockedServices = const []})
|
||||
: _lockedServices =
|
||||
lockedServices.where((final lock) => lock.isLocked).toList();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
part of 'volumes_bloc.dart';
|
||||
|
||||
abstract class VolumesEvent extends Equatable {
|
||||
sealed class VolumesEvent extends Equatable {
|
||||
const VolumesEvent();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
part of 'volumes_bloc.dart';
|
||||
|
||||
abstract class VolumesState extends Equatable {
|
||||
sealed class VolumesState extends Equatable {
|
||||
const VolumesState({
|
||||
required this.diskStatus,
|
||||
required final serverVolumesHashCode,
|
||||
|
|
Loading…
Reference in a new issue