capabilities method
Returns the previously set capabilities, or the default values if no custom capabilities have been set.
Implementation
@override
Future<List<String>> capabilities() async {
List<String>? rvalue;
try {
rvalue = await methodChannel.invokeListMethod<String>('capabilities');
} on PlatformException catch (e) {
print('Cannot get capabilities: $e');
}
return rvalue ?? <String>[];
}