worksheetByIndex method

Worksheet? worksheetByIndex(
  1. int index
)

Returns Worksheet with index.

Returns null if Worksheet with index not found.

Implementation

Worksheet? worksheetByIndex(int index) {
  return sheets.firstWhereOrNull(
    (sheet) => sheet.index == index,
  );
}