DecodeResult class

Constructors

DecodeResult(int resultCode, {String failedReason = '', List<String> warnings = const []})
const
DecodeResult.failed({int code = errorUnsupportedValue, String reason = ''})
factory
DecodeResult.success({List<String> warnings = const []})
const
DecodeResult.unrecognized()
const

Properties

codeDescription String
no setter
failedReason String
final
hashCode int
The hash code for this object.
no setterinherited
isFailed bool
no setter
isSuccess bool
no setter
isUnrecognized bool
no setter
resultCode int
-1: unrecognized 0: success other positive integer: failed, with a description in failedReason
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
warnings List<String>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

errorCrcCheckFailed → const int
errorFormatIncompatible → const int
errorMandatoryMissed → const int
errorUnsupportedPaymentOperator → const int
only support fps
errorUnsupportedValue → const int