copyWith method
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,
);
}