Uint32.from constructor
Uint32.from(
- int value
Builds from a plain Dart int, accepting negative values by taking
their two's-complement bit pattern (masked to 32 bits) instead of
throwing like Uint32.new does — e.g. Uint32.from(-1) == Uint32.max.
Mirrors the masking Int32.new already does for negative input.
Implementation
factory Uint32.from(int value) => Uint32._(value % 0x100000000);