copyWith method

SpaceShortcutEvent copyWith({
  1. String? character,
  2. SpaceShortcutEventHandler? handler,
})

Implementation

SpaceShortcutEvent copyWith({
  String? character,
  SpaceShortcutEventHandler? handler,
}) {
  return SpaceShortcutEvent(
    character: character ?? this.character,
    handler: handler ?? this.handler,
  );
}