integer 1.0.1
integer: ^1.0.1 copied to clipboard
Use custom bitwidth integers like uint16 or int32 seamlessly via getters and datatypes
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