INNER CODE UNIT · Dart

RUpgrade

rhymelph/r_upgrade · lib/r_upgrade.dart:9

class RUpgrade {
  static MethodChannel? __methodChannel;

  /// single
  static MethodChannel? get _methodChannel {
    if (__methodChannel == null) {
      __methodChannel = MethodChannel('com.rhyme/r_upgrade_method');
      __methodChannel!.setMethodCallHandler(_methodCallHandler);
    }
    return __methodChannel;
  }

  /// handle download info call back.
  static Future _methodCallHandler(MethodCall call) async {
    if (call.method == 'update') {
      _downloadInfo.add(DownloadInfo.formMap(call.arguments));
    }
    return null;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…