PEDataController(String viewType, int id, {Future<dynamic> Function(MethodCall)? handler}) { channel = MethodChannel('$viewType/$id'); channel.setMethodCallHandler(handler); }