FeatureFlag class

A feature flag definition.

Constructors

FeatureFlag({required String key, required String name, String? description, bool isEnabled = false, String? category})
Creates a new feature flag.
const

Properties

category String?
Category for grouping flags.
final
description String?
Description of what this flag does.
final
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Whether the flag is currently enabled.
final
key String
Unique identifier for the flag.
final
name String
Human-readable name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? key, String? name, String? description, bool? isEnabled, String? category}) FeatureFlag
Create a copy with updated values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited