fromPlatformException static method

FijkException fromPlatformException(
  1. PlatformException e
)

Implementation

static FijkException fromPlatformException(PlatformException e) {
  int? code = int.tryParse(e.code);
  return code != null
      ? FijkException(code, e.message)
      : FijkException(unknown, e.message);
}