Commit 730145ee by Zac Chan

Clean up code

parent 7943c582
...@@ -45,7 +45,6 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast"; ...@@ -45,7 +45,6 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
NSNumber *textcolor = call.arguments[@"textcolor"]; NSNumber *textcolor = call.arguments[@"textcolor"];
NSNumber *size = call.arguments[@"size"]; NSNumber *size = call.arguments[@"size"];
NSNumber *fontSize = call.arguments[@"fontSize"]; NSNumber *fontSize = call.arguments[@"fontSize"];
double fontSizeDouble = [fontSize doubleValue];
int time = 1; int time = 1;
@try { @try {
......
...@@ -25,12 +25,9 @@ class Fluttertoast { ...@@ -25,12 +25,9 @@ class Fluttertoast {
Fluttertoast._create(){ Fluttertoast._create(){
// _channel.setMethodCallHandler(_handleMethod);
} }
// Function(bool) didTap;
Future<bool> showToast({ Future<bool> showToast({
@required String msg, @required String msg,
Toast toastLength, Toast toastLength,
...@@ -76,13 +73,4 @@ class Fluttertoast { ...@@ -76,13 +73,4 @@ class Fluttertoast {
return res; return res;
} }
// Future<dynamic> _handleMethod(MethodCall call) async {
// switch(call.method) {
// case "onTap":
// didTap(true);
// return new Future.value("");
// }
// }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment