copyWith method

SheetProvider copyWith({
  1. SheetType? type,
  2. void nestedNavigatorPop([
    1. T? result
    ])?,
  3. VoidCallback? onClose,
  4. required Widget child,
})

Implementation

SheetProvider copyWith({
  SheetType? type,
  void Function([T? result])? nestedNavigatorPop,
  VoidCallback? onClose,
  required Widget child,
}) {
  return SheetProvider<T>(
    type: type ?? this.type,
    nestedNavigatorPop: nestedNavigatorPop ?? this.nestedNavigatorPop,
    onClose: onClose ?? this.onClose,
    child: child,
  );
}