getStaff method

Staff? getStaff(
  1. int index
)

Get a specific staff by index (flattened)

Implementation

Staff? getStaff(int index) {
  if (index < 0 || index >= staffCount) return null;
  return allStaves[index];
}