copyWith method

OutlinerConfig copyWith({
  1. bool? keyboardShortcutsEnabled,
  2. BlockStyle? blockStyle,
  3. EdgeInsets? padding,
})

Creates a copy of this OutlinerConfig with the given fields replaced

Implementation

OutlinerConfig copyWith({
  bool? keyboardShortcutsEnabled,
  BlockStyle? blockStyle,
  EdgeInsets? padding,
}) {
  return OutlinerConfig(
    keyboardShortcutsEnabled:
        keyboardShortcutsEnabled ?? this.keyboardShortcutsEnabled,
    blockStyle: blockStyle ?? this.blockStyle,
    padding: padding ?? this.padding,
  );
}