Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 3cb0c833 authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé
Browse files

feat(core): add shorthand methods to check the current result state

parent 901befc8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -44,4 +44,9 @@ sealed interface FeatureFlagResult {

        return this
    }

    fun isEnabled(): Boolean = this is Enabled
    fun isDisabled(): Boolean = this is Disabled
    fun isUnavailable(): Boolean = this is Unavailable
    fun isDisabledOrUnavailable(): Boolean = this is Disabled || this is Unavailable
}