copyWith method

JoystickDirectionalEvent copyWith({
  1. JoystickMoveDirectional? directional,
  2. double? intensity,
  3. double? radAngle,
  4. bool? isKeyboard,
})

Implementation

JoystickDirectionalEvent copyWith({
  JoystickMoveDirectional? directional,
  double? intensity,
  double? radAngle,
  bool? isKeyboard,
}) {
  return JoystickDirectionalEvent(
    directional: directional ?? this.directional,
    intensity: intensity ?? this.intensity,
    radAngle: radAngle ?? this.radAngle,
    isKeyboard: isKeyboard ?? this.isKeyboard,
  );
}