BaseConversion class

Provides ability to convert numbers between different positional numeral systems.

Constructors

BaseConversion({required String from, required String to, bool zeroPadding = false})
Constructs a BaseConversion object with the given from and to alphabets.
BaseConversion.alphabet({required Alphabet from, required Alphabet to, bool zeroPadding = false})
Constructs a BaseConversion object with the given from and to alphabets.

Properties

domain List<bool Function(String)>
Domain of this function
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

after<W>(InvertibleFunction<W, String> g) → InvertibleFunction<W, String>
Returns composite function of this function and g
inherited
before<Z>(InvertibleFunction<String, Z> g) → InvertibleFunction<String, Z>
Returns composite function of g and this function
inherited
call(String x) String
Makes this class callable
inherited
inverse() BaseConversion
Returns the inverse function of this function
isInDomain(String x) bool
Returns true if x is in the domain of this function
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of<W>(InvertibleFunction<W, String> g) → InvertibleFunction<W, String>
Returns composite function of this function and g
inherited
toString() String
A string representation of this object.
inherited
valueAt(String x) String
Defines the behaviour of this function

Operators

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