VoyagerUtils class Null safety

Common utils used throught Voyager package




hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

cleanUrl(String url) String
sanitized url for Voyager processing
copyIt(Map<String, dynamic> config) Map<String, dynamic>
makes a deep copy of Map<String, dynamic>
fromPath(String path) Uri
creates Uri based on path
interpolate(String format, Map<String, dynamic> values) String?
interpolates value of the string, e.g.: [...]
interpolateDynamic(dynamic param, VoyagerContext context) → void
interpolates dynamic param with values from context
interpolateList(List array, VoyagerContext context) → void
interpolates array with values from context
isListOrMap(Object object) bool
check if an object is a list or map
isNullOrBlank(String? it) bool
checks if string is null or blank
isTuple(dynamic object) bool
check if a dynamic object is a tuple
isWildcard(String path) bool
checks if given path is a :wildcard:
tuple(dynamic object) MapEntry<String, dynamic>
converts dynamic object to a tuple MapEntry<String, dynamic>
typify(String input) String
"typifies" a path to a snake case variable should be aligned with this implementation: