BoolPick extension

on

Methods

asBoolOrFalse() bool
Returns the picked value as bool or defaults to false when the value is null or can't be interpreted as bool.
asBoolOrNull() bool?
Returns the picked value as bool or null if it can't be interpreted as bool.
asBoolOrThrow() bool
Returns the picked value as bool or throws a PickException
asBoolOrTrue() bool
Returns the picked value as bool or defaults to true when the value is null or can't be interpreted as bool.