copyWith method
DefineMScaffoldModifier
copyWith({
- bool? autoHideKeyboardValue,
- PreferredSizeWidget? appBarValue,
- Color? valueBackgroundColor,
- bool? resizeToAvoidBottomInsetValue,
- Widget? drawerValue,
- DragStartBehavior? drawerDragStartBehaviorValue,
- Widget? endDrawerValue,
- Widget? floatingActionButtonValue,
- FloatingActionButtonLocation? floatingActionButtonLocationValue,
- FloatingActionButtonAnimator? floatingActionButtonAnimatorValue,
- Widget? bottomSheetValue,
- bool? primaryValue,
- Color? drawerScrimColorValue,
- bool? extendBodyValue,
- bool? extendBodyBehindAppBarValue,
- double? drawerEdgeDragWidthValue,
- bool? drawerEnableOpenDragGestureValue,
- bool? endDrawerEnableOpenDragGestureValue,
- DrawerCallback? onDrawerChangedValue,
- DrawerCallback? onEndDrawerChangedValue,
- String? restorationIdValue,
Create a copyWith().
Implementation
DefineMScaffoldModifier copyWith({
bool? autoHideKeyboardValue,
PreferredSizeWidget? appBarValue,
Color? valueBackgroundColor,
bool? resizeToAvoidBottomInsetValue,
Widget? drawerValue,
DragStartBehavior? drawerDragStartBehaviorValue,
Widget? endDrawerValue,
Widget? floatingActionButtonValue,
FloatingActionButtonLocation? floatingActionButtonLocationValue,
FloatingActionButtonAnimator? floatingActionButtonAnimatorValue,
List<Widget>? persistentFooterButtonsValue,
Widget? bottomNavigationBarValue,
Widget? bottomSheetValue,
bool? primaryValue,
Color? drawerScrimColorValue,
bool? extendBodyValue,
bool? extendBodyBehindAppBarValue,
double? drawerEdgeDragWidthValue,
bool? drawerEnableOpenDragGestureValue,
bool? endDrawerEnableOpenDragGestureValue,
DrawerCallback? onDrawerChangedValue,
DrawerCallback? onEndDrawerChangedValue,
String? restorationIdValue,
}) {
return DefineMScaffoldModifier(
autoHideKeyboardValue:
autoHideKeyboardValue ?? this.autoHideKeyboardValue,
/// ===================From flutter===================
appBarValue: appBarValue ?? this.appBarValue,
valueBackgroundColor: valueBackgroundColor ?? this.valueBackgroundColor,
resizeToAvoidBottomInsetValue:
resizeToAvoidBottomInsetValue ?? this.resizeToAvoidBottomInsetValue,
drawerValue: drawerValue ?? this.drawerValue,
drawerDragStartBehaviorValue:
drawerDragStartBehaviorValue ?? this.drawerDragStartBehaviorValue,
endDrawerValue: endDrawerValue ?? this.endDrawerValue,
floatingActionButtonValue:
floatingActionButtonValue ?? this.floatingActionButtonValue,
floatingActionButtonLocationValue: floatingActionButtonLocationValue ??
this.floatingActionButtonLocationValue,
floatingActionButtonAnimatorValue: floatingActionButtonAnimatorValue ??
this.floatingActionButtonAnimatorValue,
persistentFooterButtonsValue:
persistentFooterButtonsValue ?? this.persistentFooterButtonsValue,
bottomNavigationBarValue:
bottomNavigationBarValue ?? this.bottomNavigationBarValue,
bottomSheetValue: bottomSheetValue ?? this.bottomSheetValue,
primaryValue: primaryValue ?? this.primaryValue,
drawerScrimColorValue:
drawerScrimColorValue ?? this.drawerScrimColorValue,
extendBodyValue: extendBodyValue ?? this.extendBodyValue,
extendBodyBehindAppBarValue:
extendBodyBehindAppBarValue ?? this.extendBodyBehindAppBarValue,
drawerEdgeDragWidthValue:
drawerEdgeDragWidthValue ?? this.drawerEdgeDragWidthValue,
drawerEnableOpenDragGestureValue: drawerEnableOpenDragGestureValue ??
this.drawerEnableOpenDragGestureValue,
endDrawerEnableOpenDragGestureValue:
endDrawerEnableOpenDragGestureValue ??
this.endDrawerEnableOpenDragGestureValue,
onDrawerChangedValue: onDrawerChangedValue ?? this.onDrawerChangedValue,
onEndDrawerChangedValue:
onEndDrawerChangedValue ?? this.onEndDrawerChangedValue,
restorationIdValue: restorationIdValue ?? this.restorationIdValue,
);
}