mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 17:39:42 +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';
|
part of 'services_bloc.dart';
|
||||||
|
|
||||||
abstract class ServicesEvent extends Equatable {
|
sealed class ServicesEvent extends Equatable {
|
||||||
const ServicesEvent();
|
const ServicesEvent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
part of 'services_bloc.dart';
|
part of 'services_bloc.dart';
|
||||||
|
|
||||||
abstract class ServicesState extends Equatable {
|
sealed class ServicesState extends Equatable {
|
||||||
ServicesState({final List<ServiceLock> lockedServices = const []})
|
ServicesState({final List<ServiceLock> lockedServices = const []})
|
||||||
: _lockedServices =
|
: _lockedServices =
|
||||||
lockedServices.where((final lock) => lock.isLocked).toList();
|
lockedServices.where((final lock) => lock.isLocked).toList();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
part of 'volumes_bloc.dart';
|
part of 'volumes_bloc.dart';
|
||||||
|
|
||||||
abstract class VolumesEvent extends Equatable {
|
sealed class VolumesEvent extends Equatable {
|
||||||
const VolumesEvent();
|
const VolumesEvent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
part of 'volumes_bloc.dart';
|
part of 'volumes_bloc.dart';
|
||||||
|
|
||||||
abstract class VolumesState extends Equatable {
|
sealed class VolumesState extends Equatable {
|
||||||
const VolumesState({
|
const VolumesState({
|
||||||
required this.diskStatus,
|
required this.diskStatus,
|
||||||
required final serverVolumesHashCode,
|
required final serverVolumesHashCode,
|
||||||
|
|
Loading…
Reference in a new issue