PathOrder.byLength constructor Null safety

PathOrder.byLength(
  1. {dynamic reverse = false}
)

The PathSegment order is defined according to their respective length, starting with the longest element. If reverse is true, the smallest element is selected first.

Implementation

PathOrder.byLength({reverse = false})
    : _comparator = _byLength(reverse: reverse);