getExceptionFromString function

NativeException getExceptionFromString(
  1. String errorType
)

Implementation

NativeException getExceptionFromString(String errorType) {
  errorType = 'NativeException.$errorType';
  return NativeException.values.firstWhere((f)=> f.toString() == errorType, orElse: () => NativeException.UNKNOWN_EXCEPTION);
}