indexOf method

int indexOf(
  1. Widget sheet
)

Implementation

int indexOf(Widget sheet) =>
    _sheetEntries
        .firstWhereOrNull((e) => e.animatedSideSheet.child == sheet)
        ?.index ??
    -1;