endpoint property Null safety

String endpoint

The endpoint of MBurger, it uses the development flag to switch between dev and prod environments.

Implementation

String get endpoint {
  switch (channel) {
    case MBurgerChannel.stable:
      return 'mburger.cloud';
    case MBurgerChannel.develop:
      return 'dev.mburger.cloud';
    case MBurgerChannel.master:
      return 'staging.mburger.cloud';
    default:
      return 'mburger.cloud';
  }
}