PathNavigationScreen constructor

const PathNavigationScreen({
  1. Key? key,
  2. PathModel? pathModel,
  3. EncodedPathModel? encodedPathModel,
})

Creates a navigation screen for either pathModel or encodedPathModel.

Exactly one of the two inputs must be provided.

Implementation

const PathNavigationScreen({super.key, this.pathModel, this.encodedPathModel})
  : assert(
      (pathModel != null) != (encodedPathModel != null),
      'Provide exactly one of pathModel or encodedPathModel.',
    );