getSupportedFormats method

  1. @override
Future<List<String>> getSupportedFormats()
override

Gets supported barcode formats

Implementation

@override
Future<List<String>> getSupportedFormats() async {
  try {
    final result = await methodChannel.invokeMethod<List<dynamic>>(
      'getSupportedFormats',
    );
    return result?.cast<String>() ?? [];
  } on PlatformException catch (e) {
    throw _handlePlatformException(e);
  }
}