import 'package:flutter/services.dart'; import '../libgopeed_interface.dart'; class LibgopeedChannel implements LibgopeedAbi { static const _channel = MethodChannel('gopeed.com/libgopeed'); @override Future init(String cfg) async { await _channel.invokeMethod('init', { 'cfg': cfg, }); } @override Future invoke(String params) async { final result = await _channel.invokeMethod('invoke', { 'params': params, }); return result!; } }