NumberOptions class

Options that control numeric parsing.

Annotations
  • @immutable

Constructors

NumberOptions({String? defaultFormat, String? defaultLocale, bool tryFormattedFirst = true})
Creates a new NumberOptions.
const

Properties

defaultFormat String?
The default NumberFormat pattern to use when parsing formatted numbers if no explicit format is provided.
final
defaultLocale String?
The locale identifier to use when defaultFormat is applied.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tryFormattedFirst bool
Controls the priority of formatted parsing versus standard parsing.
final

Methods

copyWith({String? defaultFormat, String? defaultLocale, bool? tryFormattedFirst}) NumberOptions
Returns a copy with selected fields replaced.
merge(NumberOptions other) NumberOptions
Returns a new NumberOptions that prefers other's non-null settings.
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