doubleValue<T> static method
convert double
Implementation
static double? doubleValue<T>(T? result) {
if (result == null) {
return null;
}
if (result is double) {
debugPrint("invoke result value: $result");
return result;
} else {
if (result is FlutterError) {
FlutterError error = result;
debugPrint("invoke result FlutterError message:${error.message}");
return null;
}
debugPrint("invoke result type error: $result");
return null;
}
}