ResultParser class abstract

Abstract class representing the result of decoding a barcode, as more than a String -- as some type of structured data.

This might be a subclass which represents a URL, or an e-mail address. parseResult(Result) will turn a raw decoded string into the most appropriate type of structured representation.

@author Sean Owen

Implementers

Constructors

ResultParser()

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

isStringOfDigits(String? value, int length) bool
matchPrefixedField(String prefix, String rawText, String endChar, bool trim) List<String>?
matchSinglePrefixedField(String prefix, String rawText, String endChar, bool trim) String?
maybeWrap(String? value) List<String>?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(Result result) ParsedResult?
Attempts to parse the raw Result's contents as a particular type of information (email, URL, etc.) and return a ParsedResult encapsulating the result of parsing.
parseNameValuePairs(String uri) Map<String, String>?
toString() String
A string representation of this object.
inherited
unescapeBackslash(String escaped) String
urlDecode(String encoded) String

Operators

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

Static Properties

emptyStrArray List<String>
final

Static Methods

getMassagedText(Result result) String
isSubstringOfDigits(String? value, int offset, int length) bool
parseHexDigit(String chr) int
parseResult(Result result) ParsedResult