error_methods library Null safety

Functions

badArgument<T>({dynamic value, String? name, String? message}) → T
wrongType<T>(String name, dynamic value, List<Type> accepted) → T