154 lines
3.8 KiB
Dart
154 lines
3.8 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|||
|
|
|
||
|
|
part of 'dashboard_store.dart';
|
||
|
|
|
||
|
|
// **************************************************************************
|
||
|
|
// StoreGenerator
|
||
|
|
// **************************************************************************
|
||
|
|
|
||
|
|
// ignore_for_file: non_constant_identifier_names, unnecessary_brace_in_string_interps, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic, no_leading_underscores_for_local_identifiers
|
||
|
|
|
||
|
|
mixin _$DashboardStore on _DashboardStoreBase, Store {
|
||
|
|
late final _$isLoadingAtom = Atom(
|
||
|
|
name: '_DashboardStoreBase.isLoading',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool get isLoading {
|
||
|
|
_$isLoadingAtom.reportRead();
|
||
|
|
return super.isLoading;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set isLoading(bool value) {
|
||
|
|
_$isLoadingAtom.reportWrite(value, super.isLoading, () {
|
||
|
|
super.isLoading = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$doctorInfoAtom = Atom(
|
||
|
|
name: '_DashboardStoreBase.doctorInfo',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
DoctorInfoModel get doctorInfo {
|
||
|
|
_$doctorInfoAtom.reportRead();
|
||
|
|
return super.doctorInfo;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set doctorInfo(DoctorInfoModel value) {
|
||
|
|
_$doctorInfoAtom.reportWrite(value, super.doctorInfo, () {
|
||
|
|
super.doctorInfo = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$metricsAtom = Atom(
|
||
|
|
name: '_DashboardStoreBase.metrics',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
DashboardMetricsModel get metrics {
|
||
|
|
_$metricsAtom.reportRead();
|
||
|
|
return super.metrics;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set metrics(DashboardMetricsModel value) {
|
||
|
|
_$metricsAtom.reportWrite(value, super.metrics, () {
|
||
|
|
super.metrics = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$recentPatientsAtom = Atom(
|
||
|
|
name: '_DashboardStoreBase.recentPatients',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
ObservableList<PatientSummaryModel> get recentPatients {
|
||
|
|
_$recentPatientsAtom.reportRead();
|
||
|
|
return super.recentPatients;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set recentPatients(ObservableList<PatientSummaryModel> value) {
|
||
|
|
_$recentPatientsAtom.reportWrite(value, super.recentPatients, () {
|
||
|
|
super.recentPatients = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$todayAppointmentsAtom = Atom(
|
||
|
|
name: '_DashboardStoreBase.todayAppointments',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
ObservableList<PatientSummaryModel> get todayAppointments {
|
||
|
|
_$todayAppointmentsAtom.reportRead();
|
||
|
|
return super.todayAppointments;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set todayAppointments(ObservableList<PatientSummaryModel> value) {
|
||
|
|
_$todayAppointmentsAtom.reportWrite(value, super.todayAppointments, () {
|
||
|
|
super.todayAppointments = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$errorMessageAtom = Atom(
|
||
|
|
name: '_DashboardStoreBase.errorMessage',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
String? get errorMessage {
|
||
|
|
_$errorMessageAtom.reportRead();
|
||
|
|
return super.errorMessage;
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
set errorMessage(String? value) {
|
||
|
|
_$errorMessageAtom.reportWrite(value, super.errorMessage, () {
|
||
|
|
super.errorMessage = value;
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$loadDashboardDataAsyncAction = AsyncAction(
|
||
|
|
'_DashboardStoreBase.loadDashboardData',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Future<void> loadDashboardData() {
|
||
|
|
return _$loadDashboardDataAsyncAction.run(() => super.loadDashboardData());
|
||
|
|
}
|
||
|
|
|
||
|
|
late final _$changeWaitingStatusAsyncAction = AsyncAction(
|
||
|
|
'_DashboardStoreBase.changeWaitingStatus',
|
||
|
|
context: context,
|
||
|
|
);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Future<bool> changeWaitingStatus(int patientId, String nuevoEstado) {
|
||
|
|
return _$changeWaitingStatusAsyncAction.run(
|
||
|
|
() => super.changeWaitingStatus(patientId, nuevoEstado),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return '''
|
||
|
|
isLoading: ${isLoading},
|
||
|
|
doctorInfo: ${doctorInfo},
|
||
|
|
metrics: ${metrics},
|
||
|
|
recentPatients: ${recentPatients},
|
||
|
|
todayAppointments: ${todayAppointments},
|
||
|
|
errorMessage: ${errorMessage}
|
||
|
|
''';
|
||
|
|
}
|
||
|
|
}
|