closeDevice method
Implementation
@override
Future<Map<String, dynamic>> closeDevice() async {
try {
final Map<String, dynamic> result = Map<String, dynamic>.from(
await channel.invokeMethod('closeDevice')
);
return result;
} on PlatformException catch (e) {
throw SmartPosException('Device closing failed: ${e.message}');
}
}