name property

String name

Implementation

String get name {
  switch (this) {
    case ChannelMethod.initialize:
      return 'initialize';
    case ChannelMethod.registerForNotifications:
      return 'registerForNotifications';
    case ChannelMethod.unregisterFromNotifications:
      return 'unregisterFromNotifications';
    case ChannelMethod.onNewSubscription:
      return 'onNewSubscription';
    case ChannelMethod.getSubscriberId:
      return 'getSubscriberId';
    case ChannelMethod.getCredentials:
      return 'getCredentials';
    case ChannelMethod.sendBeacon:
      return 'sendBeacon';
    default:
      return '';
  }
}