platformVersion property

Future<String?> platformVersion

Function to check working/validity of method channels

Implementation

static Future<String?> get platformVersion async {
  /// String to store the version number before returning. This is just to test working/validity.
  final String version = await _channel.invokeMethod('getPlatformVersion');

  /// Function returns version number
  return version;
}