maybeOf static method

VitComboBoxStyle? maybeOf(
  1. BuildContext context
)

Gets the VitComboBoxThemeData from the BuildContext if any.

Implementation

static VitComboBoxStyle? maybeOf(BuildContext context) {
  var child = context.findAncestorWidgetOfExactType<VitComboBoxTheme>();
  return child?.data;
}