maybeOf static method

VitTableStyle? maybeOf(
  1. BuildContext context
)

Gets the VitTableStyle from the BuildContext if any.

Implementation

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