has method

bool has(
  1. String name
)

Implementation

bool has(String name) {
  if (kIsWeb) {
    return hasForWeb(name) != null;
  }
  else {
    return hasForApp(name) != null;
  }
}