mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 01:56:24 +00:00
push gatway devices
This commit is contained in:
26
lib/pages/device_managment/gateway/bloc/gate_way_state.dart
Normal file
26
lib/pages/device_managment/gateway/bloc/gate_way_state.dart
Normal file
@ -0,0 +1,26 @@
|
||||
part of 'gate_way_bloc.dart';
|
||||
|
||||
sealed class GateWayState extends Equatable {
|
||||
const GateWayState();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
final class GateWayInitial extends GateWayState {}
|
||||
|
||||
class GatewayLoadingState extends GateWayState {}
|
||||
|
||||
class UpdateGatewayState extends GateWayState {
|
||||
final List<DeviceModel> list;
|
||||
const UpdateGatewayState({required this.list});
|
||||
@override
|
||||
List<Object> get props => [list];
|
||||
}
|
||||
|
||||
class ErrorState extends GateWayState {
|
||||
final String message;
|
||||
const ErrorState({required this.message});
|
||||
@override
|
||||
List<Object> get props => [message];
|
||||
}
|
Reference in New Issue
Block a user