getLabelWidth static method

double? getLabelWidth(
  1. BuildContext context
)

Returns the label width set by the enclosing section, or null.

Implementation

static double? getLabelWidth(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<DraftModeUISectionScope>()
      ?.labelWidth;
}