utils/utils library
Extensions
- ToJson on T
- Returns normalized Json to Human readable format
Functions
-
isNotEmpty(
dynamic value) → bool -
Returns
true
whenvalue
is not empty or not null otherwise returnsfalse 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