modify method
ScaffoldProperties
modify({
- Color? backgroundColor,
- double? drawerEdgeDragWidth,
- bool? drawerEnableOpenDragGesture,
- DragStartBehavior? drawerDragStartBehavior,
- Color? drawerScrimColor,
- bool? endDrawerEnableOpenDragGesture,
- bool? extendBody,
- bool? extendBodyBehindAppBar,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- bool? primary,
- String? restorationId,
- bool? resizeToAvoidBottomInset,
Implementation
ScaffoldProperties modify({
Color? backgroundColor,
double? drawerEdgeDragWidth,
bool? drawerEnableOpenDragGesture,
DragStartBehavior? drawerDragStartBehavior,
Color? drawerScrimColor,
bool? endDrawerEnableOpenDragGesture,
bool? extendBody,
bool? extendBodyBehindAppBar,
FloatingActionButtonAnimator? floatingActionButtonAnimator,
FloatingActionButtonLocation? floatingActionButtonLocation,
bool? primary,
AlignmentDirectional? persistentFooterAlignment,
String? restorationId,
bool? resizeToAvoidBottomInset,
}) {
return ScaffoldProperties(
backgroundColor: backgroundColor ?? this.backgroundColor,
drawerEdgeDragWidth: drawerEdgeDragWidth ?? this.drawerEdgeDragWidth,
drawerEnableOpenDragGesture:
drawerEnableOpenDragGesture ?? this.drawerEnableOpenDragGesture,
drawerDragStartBehavior:
drawerDragStartBehavior ?? this.drawerDragStartBehavior,
drawerScrimColor: drawerScrimColor ?? this.drawerScrimColor,
endDrawerEnableOpenDragGesture:
endDrawerEnableOpenDragGesture ?? this.endDrawerEnableOpenDragGesture,
extendBody: extendBody ?? this.extendBody,
extendBodyBehindAppBar:
extendBodyBehindAppBar ?? this.extendBodyBehindAppBar,
floatingActionButtonAnimator:
floatingActionButtonAnimator ?? this.floatingActionButtonAnimator,
floatingActionButtonLocation:
floatingActionButtonLocation ?? this.floatingActionButtonLocation,
primary: primary ?? this.primary,
persistentFooterAlignment:
persistentFooterAlignment ?? this.persistentFooterAlignment,
restorationId: restorationId ?? this.restorationId,
resizeToAvoidBottomInset:
resizeToAvoidBottomInset ?? this.resizeToAvoidBottomInset,
);
}