getKeyDownDuration method

int getKeyDownDuration(
  1. int key
)

Implementation

int getKeyDownDuration(int key) =>
  keyStateDuration[key] ?? 0;