Numbers class final

Numeric literals: decimals, floats with exponents, and hexadecimal, binary and octal forms.

separator is the digit separator (_, or ' in C++), or null. suffix is a pattern for type suffixes, such as [uUlLfF]* or n?.

Inheritance

Constructors

Numbers({bool hex = true, bool binary = true, bool octal = true, String? separator = '_', String suffix = '', String scope = Scopes.number})
Creates a number block.
const

Properties

binary → bool
Whether 0b… is a number.
final
hashCode → int
The hash code for this object.
no setterinherited
hex → bool
Whether 0x… is a number.
final
octal → bool
Whether 0o… is a number.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → String
Scope of numbers.
final
separator → String?
Digit separator, or null.
final
suffix → String
Pattern for a suffix after the number.
final

Methods

expand() → List<Rule>
The basic rules this block stands for. Called once per block.
override
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