getBooleanProperty method

BooleanPropertyStream getBooleanProperty(
  1. String key
)
inherited

Gets a stream for a boolean property at the specified key.

Returns a BooleanPropertyStream that provides:

  • .stream - Emits the boolean when complete
  • .future - Completes with the parsed boolean value

Example:

final isActive = await parser.getBooleanProperty('active').future;

Implementation

BooleanPropertyStream getBooleanProperty(String key) {
  final fullPath = buildPropertyPath(key);
  return parserController.getPropertyStream(fullPath, bool)
      as BooleanPropertyStream;
}