BoundedItemsQuery.fromOpt constructor
BoundedItemsQuery.fromOpt(
- ItemsQuery? query
A new query with query parameters copied from an optional query
.
Supports reading query
parameters from ItemsQuery and
BoundedItemsQuery.
If query
is null, then returns an instance with all parameters set null.
Implementation
factory BoundedItemsQuery.fromOpt(ItemsQuery? query) =>
query is BoundedItemsQuery
? BoundedItemsQuery(
crs: query.crs,
bboxCrs: query.bboxCrs,
bbox: query.bbox,
timeFrame: query.timeFrame,
limit: query.limit,
parameters: query.parameters,
)
: BoundedItemsQuery(
crs: query?.crs,
limit: query?.limit,
parameters: query?.parameters,
);