maybeWhen<T> method

T maybeWhen<T>({
  1. T? mMegolmBackupV1Curve25519AesSha2()?,
  2. required T orElse(),
})

Implementation

T maybeWhen<T>({
  T? Function()? mMegolmBackupV1Curve25519AesSha2,
  required T Function() orElse,
}) =>
    {
      BackupAlgorithm.mMegolmBackupV1Curve25519AesSha2:
          mMegolmBackupV1Curve25519AesSha2,
    }[this]
        ?.call() ??
    orElse();