SearchParams<S>.schema constructor

const SearchParams<S>.schema({
  1. required S defaults,
  2. InvalidSearchBehavior invalid = InvalidSearchBehavior.fallback,
})

Declares a codec that the file-route compiler must generate.

Implementation

const SearchParams.schema({
  required this.defaults,
  this.invalid = InvalidSearchBehavior.fallback,
}) : _keys = null,
     _decode = null,
     _encode = null,
     isSchema = true;