clampInt method

int clampInt(
  1. int min,
  2. int max
)

限制在指定范围内

Implementation

int clampInt(int min, int max) => clamp(min, max) as int;