decode method

  1. @override
(T, Iterable<String>)? decode(
  1. UrlData url
)
override

Implementation

@override
(T, Iterable<String>)? decode(UrlData url) {
  final value = decodeSegment(SegmentData(
    name: url.segments.first,
    queryParams: url.queryParams,
    state: url.states,
  ));

  if (value == null) {
    return null;
  }

  return (value, url.segments.skip(1));
}