getErrorCode function

String getErrorCode(
  1. dynamic error
)

Implementation

String getErrorCode(dynamic error) {
  if (error is PlatformException) {
    return error.code;
  }
  return PassageErrorCode.unknkown;
}