mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-26 03:57:55 +00:00
finished adding tasks and removing them , added error handling
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:syncrow_app/features/devices/model/device_category_model.dart';
|
||||
import 'package:syncrow_app/features/devices/model/device_model.dart';
|
||||
import 'package:syncrow_app/features/devices/model/functions.dart';
|
||||
import 'package:syncrow_app/features/devices/model/function_model.dart';
|
||||
|
||||
class DeviceManagerState extends Equatable {
|
||||
final bool loading;
|
||||
@@ -11,7 +11,7 @@ class DeviceManagerState extends Equatable {
|
||||
final bool categoryChanged;
|
||||
final bool deviceSelected;
|
||||
final bool functionsLoading;
|
||||
final FunctionsEntity? deviceFunctions;
|
||||
final FunctionModel? deviceFunctions;
|
||||
|
||||
const DeviceManagerState({
|
||||
required this.loading,
|
||||
@@ -45,7 +45,7 @@ class DeviceManagerState extends Equatable {
|
||||
bool? categoryChanged,
|
||||
bool? deviceSelected,
|
||||
bool? functionsLoading,
|
||||
FunctionsEntity? deviceFunctions,
|
||||
FunctionModel? deviceFunctions,
|
||||
}) {
|
||||
return DeviceManagerState(
|
||||
loading: loading ?? this.loading,
|
||||
|
||||
Reference in New Issue
Block a user