ToValObj.many constructor

ToValObj.many(
  1. Iterable<ValStr> vals
)

Tries to convert an input value of type Object? into a value of type String? and forwards it to each instance within the vals iterable.

vals the collection of ValStr instances. Throws an ArgumentError if the input value is not of type 'String?'.

Implementation

ToValObj.many(Iterable<ValStr> vals)
    : _asValObj = Rules<Object>(
        vals.map((valStr) => ToValObj(valStr).call).toList(growable: false),
      ).call;