apply method

  1. @override
int apply(
  1. int size
)

Implementation

@override
int apply(int size) {
  if (value < 0) return 0;
  if (value > size) return size;
  return value;
}