boost library Null safety

Classes

CancellationToken
ConfigParser
App configuration parsed from environment variables and command line arguments.
GuardResult<T>
Describes the execution result of a function inside the runGuarded function.
Notifier
Semaphore
A semaphore prevents asynchronous code from being executed simultaneously.
Triple<Ta, Tb, Tc>
Structure for holding three values of independent types.
Tuple<Ta, Tb>
Structure for holding two values of independent types.
TypeCheck<T>
A utility class for checking type parameters.
Version
Represents a Version consisting of numeric parts, starting with the most significant part.

Extensions

CancelableFuture
IterableExtension
ListExtension
NullableIterableExtension
TripleIterableExtension
Extensions for Iterables of type Triple.
TupleIterableExtension
Extensions for Iterables of type Tuple.
Uint8ListExtension

Functions

clamp<T extends num>(T value, T min, T max) → T
Clamps a value between a inclusive minimum and inclusive maximum.
findEnum<TEnum extends Enum>(String value, List<TEnum> values, {bool ignoreCase = false}) → TEnum
Finds and returns the enum value which matches with the given string value.
isNull(dynamic e) bool
notNull(dynamic e) bool
nullOrEmpty(String? source) bool
Returns true if string is either null or empty.
nullOrWhitespace(String? source) bool
Returns true if string is either null or entirely whitespace.
round<T extends num>(T value, [int digits = 0]) double
Rounds to given digit count.
runGuarded(Iterable<Future Function(CancellationToken?)> actions, {ExecutionMode executionMode = ExecutionMode.Concurrent, CancellationToken? cancel}) Future<List<GuardResult>>
Executes multiple async functions concurrent while catching every result or error that is thrown.
toDegrees(num radians) double
Converts radians to degrees.
toRadians(num degrees) double
Converts degrees to radians.
tryFindEnum<TEnum extends Enum>(String value, List<TEnum> values, {bool ignoreCase = false}) → TEnum?
Finds and returns the enum value which matches with the given string value.

Enums

ExecutionMode

Exceptions / Errors

BoostException
Base class for boost exceptions.
CanceledException