findValue method

T findValue(
  1. BuildContext context
)

Implementation

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