isSupported property

bool get isSupported

Implementation

bool get isSupported {
  switch (this) {
    case Notification:
      return window['Notification'].isDefinedAndNotNull;
    default:
      return window[name].isDefinedAndNotNull;
  }
}