dependsOnValue method

T dependsOnValue(
  1. BuildContext context
)

Implementation

T dependsOnValue(BuildContext context) {
  var holder = context.dependOnInheritedWidgetOfExactType<FeatureFlags>();
  if (holder != null) {
    var flagValue = holder.find(this);
    if (flagValue != null) {
      return flagValue._value;
    }
  }
  return _defaultValue;
}