booleansOptional method

List<bool>? booleansOptional(
  1. String key, {
  2. int? min,
  3. int? max,
  4. bool allowEmptyList = true,
})

Extracts an optional list of booleans.

Returns the list of booleans corresponding to the key if it exists, or null if it does not exist. Use the booleans method if the key must always exist.

See booleans for more details.

Implementation

List<bool>? booleansOptional(String key,
        {int? min, int? max, bool allowEmptyList = true}) =>
    _listBoolean(key, allowEmptyList: allowEmptyList, optional: true);