helpers library

Functions

camelCaseToSnakeCase(String input) String
Method to convert camelCases to snake_cases
ifFalsy(String? a, String b) String
Method that will returns a if a is not null or an empty string. Otherwise, b will be returned.
normalize(String input) String
Method to normalize the input string to .ENV compatible keys.
validate(String? input, BoolFn predicate) bool
Method to decide whether a String input returns true or false through the predicate function or not.

Typedefs

BoolFn = bool Function(String?)
Type Definition: function with a String as a parameter returning a bool