isParentOfScaffold static method

bool isParentOfScaffold(
  1. dynamic nodeState,
  2. PageState state
)

Implementation

static bool isParentOfScaffold(WidgetState nodeState, PageState state) {
  final parent = state.nodes
      .firstWhereOrNull((element) => element.id == nodeState.node.parentID);
  if (parent == null) return false;
  return parent.type == NType.scaffold && state.fit == ComponentFit.absolute;
}