v2TXLiveCode<T> static method

V2TXLiveCode? v2TXLiveCode<T>(
  1. T? result
)

covert V2TXLiveCode

Implementation

static V2TXLiveCode? v2TXLiveCode<T>(T? result) {
  if (result == null) {
    return null;
  }
  if (result is V2TXLiveCode) {
    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;
  }
}