Uint32 extension type

A robust, heap-allocated 32-bit unsigned integer wrapper utilizing dart:typed_data.

Unlike the zero-cost variant, Uint32 is strictly backed by an Uint32List(1). This inherently bounds the variable within standard memory specifications and rigorously guarantees that mathematical operators intuitively overflow using C++ style constraints, exactly mimicking real hardware boundaries, providing complete safety!

on

Constructors

Uint32(Uint32List _data)
Uint32.from(int value)
Dynamically instantiates a Uint32 value mapped sequentially into memory.

Properties

value int
Extracts the underlying raw Dart int strictly clamped.
no setter

Methods

addChecked(Uint32 other) Uint32
Adds other dynamically intercepting any numerical layout overflow triggering a Dart StateError.
mulChecked(Uint32 other) Uint32
Evaluates exact strict mathematical bounding conditions without truncating natively.
subChecked(Uint32 other) Uint32
Subtracts other throwing a programmatic bounds break upon underflow.

Operators

operator %(Uint32 other) Uint32
Modulo remainder constraint matching natively bounded data models.
operator &(Uint32 other) Uint32
Bitwise AND logically coupled to bit patterns.
operator *(Uint32 other) Uint32
Multiplication mathematically clipped naturally to standard hardware constraints.
operator +(Uint32 other) Uint32
Standard addition. Natively handles and wraps exact numerical overflows gracefully.
operator -(Uint32 other) Uint32
Standard subtraction. Computes precise arithmetic underflows independently.
operator <(Uint32 other) bool
Returns true if this value evaluates less than other.
operator <<(int shiftAmount) Uint32
Left-shifts the integer's bits gracefully overflowing when passing the bit barrier.
operator <=(Uint32 other) bool
Returns true if this bounds-checked value is less than or equal to other.
operator >(Uint32 other) bool
Strict evaluation if this numerical element is larger.
operator >=(Uint32 other) bool
Strict evaluation extending identical size bounds.
operator >>(int shiftAmount) Uint32
Right-shifts the numerical data maintaining standard sign retention.
operator >>>(int shiftAmount) Uint32
Right-shift explicitly padding zeros unconditionally.
operator ^(Uint32 other) Uint32
Bitwise XOR operator.
operator |(Uint32 other) Uint32
Bitwise OR operator.
operator ~() Uint32
Bitwise NOT standardly shifting limits.
operator ~/(Uint32 other) Uint32
Truncating division.

Static Properties

max Uint32
Returns the statically-bounded maximum value of a 32-bit unsigned integer (4294967295).
final
min Uint32
Returns the statically-bounded minimum value of a 32-bit unsigned integer (0).
final