PlatformFailureMapper class final

Специализированный маппер ошибок платформенных плагинов.

Преобразует PlatformException в соответствующие Failure: разрешения, геолокацию, уведомления, хранилище и т.д. Определяет тип ошибки по ключевым словам в code, message и details.

Используется в цепочке FailureSubMapper как часть FailureMapper.

См. также: FailureSubMapper, CommonFailureMapper.

Implemented types

Constructors

PlatformFailureMapper()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
tryMap(Object error, [StackTrace? stackTrace]) → Failure?
Пытается преобразовать error в Failure, если это PlatformException.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited