openDevice method

  1. @override
Future<Map<String, dynamic>> openDevice()
override

Implementation

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

}