PiholeStatus class
The status of the PiholeApi.
- Implementers
- Annotations
-
- @freezed
Constructors
- PiholeStatus.disabled()
-
Pihole is not listening to DNS requests.
constfactory
- PiholeStatus.enabled()
-
Pihole is listening to DNS requests.
constfactory
- PiholeStatus.sleeping(Duration duration, DateTime start)
-
Pihole started sleeping at
start
for the givenduration
.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult enabled(PiholeStatusEnabled value), required TResult disabled(PiholeStatusDisabled value), required TResult sleeping(PiholeStatusSleeping value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult enabled(PiholeStatusEnabled value)?, TResult disabled(PiholeStatusDisabled value)?, TResult sleeping(PiholeStatusSleeping value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult enabled(PiholeStatusEnabled value)?, TResult disabled(PiholeStatusDisabled value)?, TResult sleeping(PiholeStatusSleeping value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult enabled()?, TResult disabled()?, TResult sleeping(Duration duration, DateTime start)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult enabled(), required TResult disabled(), required TResult sleeping(Duration duration, DateTime start)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult enabled()?, TResult disabled()?, TResult sleeping(Duration duration, DateTime start)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited