Integer
Use Dart's native integers in custom bitwidth integer format.
32423445435.int32 /// -1936292933
Remember to enclose negative integer literals like -34644 or -89 in parenthesis to tell Dart that the getters should be called for the entire literal. Like this
(-98723447).uint16 /// 39305
Custom Bit-Width
Provide a custom bit-width to convert the integer to that format
(-4567233343).intX(22) /// 363713
(-4567233343).uintX(48) /// 281470409477313
Libraries
- integer
integerlibrary allows you to use custom bitwidth integers via getters and datatypes