utils/utils library

Classes

AmountConverter
Handles conversions between human-readable amounts and base units.
AmountConverterUtils
Utility class for converting amounts between decimal and base units.
BigintUtils
BigRational
Represents a rational number with arbitrary precision using BigInt for the numerator and denominator.
BinaryOps
BitUtils
Class container for bit utility functions.
BytesUtils
A utility class for working with binary data represented as lists of integers (bytes).
ComparableBigIntRange
ComparableRange over BigInts.
ComparableIntRange
ComparableRange over Dart ints.
ComparableRange<T>
A half-open [start, end) range that is both comparable and iterable.
CompareUtils
Comparison and equality helpers for lists, maps, and grouping.
ConstantEquality<T extends ConstantEquality<T>>
DefaultJsonifyConfig
Either<L, R>
Holds one of two possible types: a Left (conventionally, an error) or a Right (conventionally, a success value).
Equality
Mixin that derives ==/hashCode from variables (deep, order-sensitive).
Err<T extends Object?, E extends Object?>
The error case of a Result.
HashCodeGenerator
A utility class for generating consistent and efficient hash codes for collections and objects.
IntUtils
Utility class for integer-related operations and conversions.
JsonifyConfig
JsonParser
Converts loosely-typed JSON-decoded values (num/String/List/Map/etc.) into strongly-typed Dart values, and detects a generic type parameter's runtime shape via the is T trick used throughout this class.
Left<L, R>
The "left" case of an Either.
Ok<T extends Object?, E extends Object?>
The success case of a Result.
PartialEquality
Like Equality, but ==/hashCode are derived from parts instead of every field, letting a class exclude some fields from comparison.
Result<T extends Object?, E extends Object?>
A Rust-like Result type
The "right" case of an Either.
SafeAtomicLock
A hybrid atomic lock — safe, fast, and error-proof.
StringUtils
A utility class for working with strings and common string operations.

Enums

LockId
Unique IDs for different locks.
StringEncoding
String encoding schemes supported by StringUtils.encode/StringUtils.decode.

Extensions

ExtCaseInsensitiveMapExtension on Map<String, V>
Case-insensitive key lookup for string-keyed maps.
ExtJSONHelper on Map<K, V>
Typed field lookup/coercion helpers for JSON-decoded maps.

Typedefs

CbAsyncTask<T> = FutureOr<T> Function()