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 givenfrom
andto
alphabets. - BaseConversion.alphabet({required Alphabet from, required Alphabet to, bool zeroPadding = false})
-
Constructs a
BaseConversion
object with the givenfrom
andto
alphabets.
Properties
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 functioninherited -
call(
String x) → String -
Makes this class callable
inherited
-
inverse(
) → BaseConversion - Returns the inverse function of this function
-
isInDomain(
String x) → bool -
Returns
true
ifx
is in the domain of this functioninherited -
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