isBoolean property

bool get isBoolean

Returns true if this parameter is a boolean type

A parameter is boolean if:

  1. type is explicitly 'boolean'

Note: Parameters with quoted "true"/"false" defaults are treated as strings, not booleans, so they require explicit values and don't act as flags.

Implementation

bool get isBoolean {
  return type == 'boolean';
}