utils/data_validator library
Functions
-
validateHomogeneousType(
List list, {String message = 'Inconsistent data types in list.'}) → void - Validates that all elements in the list are of the same runtimeType.
-
validateNoNulls(
List list, {String message = 'Input list contains null values.'}) → void - Throws an ArgumentError if the list contains null values.
-
validateNotEmpty(
List list, {String message = 'Input list cannot be empty.'}) → void - Utility functions for validating input data for encoders. Throws an ArgumentError if the list is empty.