getValue method

bool getValue()

Returns the value of the matched Switch via Widget.toDiagnosticsNode

Implementation

bool getValue() {
  return getDiagnosticProp<bool>('value');
}