utils/utils library

Extensions

ToJson on T
Returns normalized Json to Human readable format

Functions

isNotEmpty(dynamic value) bool
Returns true when value is not empty or not null otherwise returns false It can check on data types like: bool?, String?, num?, Map?, List?`
readLines(String filePath) List
readSpecVersionsFromFilePath(String filePath) List<SpecVersion>
validateSpecVersion(dynamic data, {bool reportMultipleErrors = false}) bool
validateSpecVersionArray(dynamic data, {bool reportMultipleErrors = false}) bool