hasContext static method

bool hasContext(
  1. String contextCheck
)

Implementation

static bool hasContext(String contextCheck) {
  final ret = js.context.hasProperty(contextCheck) &&
      js.context[contextCheck] != null &&
      js.context[contextCheck].toString() != 'null';

  print('HasContext $contextCheck, $ret');

  return ret;
}