fromString static method

CommonError fromString(
  1. String error
)

Implementation

static CommonError fromString(String error) {
  return CommonError((b) => b
    ..errorCode = "Runtime"
    ..description = error
    ..status = 0
    ..dismissed = false
    ..stack = ""
    ..unauthorized = false);
}