isModifierPressed method Null safety

bool isModifierPressed(
  1. ModifierKey key,
  2. int modifiers,
  3. {KeyboardSide side = KeyboardSide.any,
  4. required int keyCode,
  5. required bool isDown}

Returns true if the given ModifierKey was pressed at the time of this event.


bool isModifierPressed(ModifierKey key, int modifiers, {KeyboardSide side = KeyboardSide.any, required int keyCode, required bool isDown});