classifierFor method

WidgetClassifier classifierFor(
  1. SceneNode node
)

Implementation

WidgetClassifier classifierFor(SceneNode node) {
  for (final c in _classifiers) {
    if (c.matches(node)) return c;
  }
  throw StateError('no classifier matched ${node.label} — UnknownClassifier should be the floor');
}