requireBool method

bool? requireBool(
  1. String key
)

Required bool; records an error and returns null if absent/non-bool. Audited: 2026-06-12 11:26 EDT

Implementation

bool? requireBool(String key) => _require<bool>(key, 'bool');