bricks library

Extensions

Add
GetOnMap
SprintfKeyValue

Functions

ifThen(bool condition, String whenTrue, {String orElse: ''}) String
If condition is true, then returns whenTrue, else returns orElse or ''. ( All arguments will be calculated. )
ifThenLazy(bool condition, FutureOr<String> whenTrue(), {FutureOr<String> orElse()}) String
If condition is true, then returns whenTrue(), else returns orElse() or ''. ( All arguments will be calculated. )
mapAndJoin<T>(Iterable<T> elements, String predicate(T item), {String separator: ''}) String
Maps each element of elements by predicate and joins result list via separator or empty string.