copyWith method
复制并修改配置
Implementation
DrawerConfig copyWith({
bool? autoOpen,
bool? autoClose,
bool? isEndDrawer,
}) {
return DrawerConfig(
autoOpen: autoOpen ?? this.autoOpen,
autoClose: autoClose ?? this.autoClose,
isEndDrawer: isEndDrawer ?? this.isEndDrawer,
);
}