BitPatternBuilder.parse constructor

const BitPatternBuilder.parse(
  1. String bits
)

Creates a new builder that will parse bits.

Supported characters are 0, 1, A-Za-z, and _, where 0 and 1 are parsed as a BitPart, and A-Za-z are parsed as a BitPart.v, and _ is ignored (can be used to help separate bits for readability).

It is considered invalid to have the same variable more than once within a pattern (e.g. 01AA01AA), to have more than one _ in a row (e.g. 0101__0101), or to have an empty or null string.

Implementation

const factory BitPatternBuilder.parse(String bits) = _BitPatternParser;