copyWith method

DrawerConfig copyWith({
  1. bool? autoOpen,
  2. bool? autoClose,
  3. bool? isEndDrawer,
})

复制并修改配置

Implementation

DrawerConfig copyWith({
  bool? autoOpen,
  bool? autoClose,
  bool? isEndDrawer,
}) {
  return DrawerConfig(
    autoOpen: autoOpen ?? this.autoOpen,
    autoClose: autoClose ?? this.autoClose,
    isEndDrawer: isEndDrawer ?? this.isEndDrawer,
  );
}