of static method

confirm the passed context contains BSColumnInheritance, and if there is one, or more pass the nearest BSColumnInheritance in the Widget tree use this function to access BSColumnInheritance's data

Implementation

static BSColumnInheritance of(BuildContext context) {
  final BSColumnInheritance? result =
      context.dependOnInheritedWidgetOfExactType<BSColumnInheritance>();
  assert(result != null, 'No BSColumnInheritance found in context');
  return result!;
}