mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
made events and state class final
s, to better document that they shouldn't be extended.
This commit is contained in:
@ -7,7 +7,7 @@ sealed class DeviceLocationEvent extends Equatable {
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class LoadDeviceLocationEvent extends DeviceLocationEvent {
|
||||
final class LoadDeviceLocationEvent extends DeviceLocationEvent {
|
||||
const LoadDeviceLocationEvent(this.param);
|
||||
|
||||
final GetDeviceLocationDataParam param;
|
||||
@ -16,6 +16,6 @@ class LoadDeviceLocationEvent extends DeviceLocationEvent {
|
||||
List<Object?> get props => [param];
|
||||
}
|
||||
|
||||
class ClearDeviceLocationEvent extends DeviceLocationEvent {
|
||||
final class ClearDeviceLocationEvent extends DeviceLocationEvent {
|
||||
const ClearDeviceLocationEvent();
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ part of 'device_location_bloc.dart';
|
||||
|
||||
enum DeviceLocationStatus { initial, loading, success, failure }
|
||||
|
||||
class DeviceLocationState extends Equatable {
|
||||
final class DeviceLocationState extends Equatable {
|
||||
const DeviceLocationState({
|
||||
this.status = DeviceLocationStatus.initial,
|
||||
this.locationInfo,
|
||||
|
Reference in New Issue
Block a user