custom method
Implementation
static Future<Map<String,dynamic>> custom( String text, int size) async {
try {
final String result = await _channel.invokeMethod('custom',{"data": text, 'size' : size});
return { "success" : (result=="1"), "message" : result };
} on PlatformException catch (e) {
return { "success" : false, "messge" : e.message };
}
}