import 'dart:async'; import 'package:flutter/services.dart'; class ReceiveIntent { static const MethodChannel _channel = const MethodChannel('receive_intent'); static Future get platformVersion async { final String version = await _channel.invokeMethod('getPlatformVersion'); return version; } }