of static method

VitTableStyle of(
  1. BuildContext context
)

Gets the VitTableStyle from the BuildContext. This method throws an exception if no data is found.

Implementation

static VitTableStyle of(BuildContext context) {
  var data = maybeOf(context);
  if (data == null) {
    throw StateError('No VitTableStyle found on context');
  }
  return data;
}