canRead method

bool canRead(
  1. int count
)

Implementation

bool canRead(int count) => count >= 0 && remaining >= count;