closeDay method
- BuildContext context
Implementation
Future<Map<String, dynamic>> closeDay(BuildContext context) async {
final InterfaceProvider interfaceProvider = Provider.of(
context,
listen: false,
);
interfaceProvider.loading = true;
final Map<String, dynamic> response = await closeBatchService(
context,
).catchError(
(error) {
return <String, dynamic>{
'generic_error': error,
};
},
);
Navigator.pop(context);
return response;
}