prepare method

dynamic prepare(
  1. List<GuideItem> guiderWidgetList
)

Implementation

prepare(List<GuideItem> guiderWidgetList) {
  _overlayDescArray.clear();
  for (GuideItem item in guiderWidgetList) {
    assert(item.toGuideKey != null || item.toGuideRect != null,
        "Either 'toGuideKey' or 'toGuideRect' must be provided; both cannot be null.");
    if (item.toGuideKey is GlobalKey) {
      _assembleLTRBFromKey(item);
    }
    if (item.toGuideRect != null) {
      _assembleLTRBFromRect(item);
    }
  }
}