NavigationPlugin constructor

NavigationPlugin({
  1. required String name,
  2. required String title,
  3. int maxRetainedBranches = defaultMaxRetainedBranches,
})

Implementation

NavigationPlugin({
  required super.name,
  required super.title,
  this.maxRetainedBranches = defaultMaxRetainedBranches,
}) {
  if (maxRetainedBranches < 1) {
    throw ArgumentError.value(
      maxRetainedBranches,
      'maxRetainedBranches',
      'must be positive',
    );
  }
}