isAllowed method

bool isAllowed(
  1. String type
)

Check if a widget type is allowed to render.

Implementation

bool isAllowed(String type) {
  if (builders.containsKey(type)) return true;
  if (denyWidgets.contains(type)) return false;
  return defaultWindWidgets.contains(type) ||
      defaultFlutterWidgets.contains(type);
}