Feature constructor

Feature(
  1. String feature, {
  2. Key? key,
  3. Widget? parent,
  4. Widget child = const SizedBox.shrink(),
  5. Widget empty = const SizedBox.shrink(),
})

Create a new FeatureToggle

Implementation

Feature(
  this.feature, {
  Key? key,
  this.parent,
  this.child = const SizedBox.shrink(),
  this.empty = const SizedBox.shrink(),
}) : super(key: key);