getCurrentFrequency static method

Future<int?> getCurrentFrequency(
  1. int coreNumber
)

Gets the current frequency for the specified coreNumber

Implementation

static Future<int?> getCurrentFrequency(int coreNumber) async {
  try {
    return await _channel
        .invokeMethod('getCurrentFrequency', {"coreNumber": coreNumber});
  } on PlatformException catch (e) {
    throw 'Failed to retrieve current frequency for the core ${e.code}: ${e.message}';
  }
}