unsafe_u64 static method

BcsType<int, dynamic> unsafe_u64([
  1. BcsTypeOptions<int, dynamic>? options
])

Implementation

static BcsType<int, dynamic> unsafe_u64([BcsTypeOptions<int, dynamic>? options]) {
  return Bcs.u64(
    BcsTypeOptions(
      name: 'unsafe_u64',
      validate: options?.validate,
    )
  ).transform(
    input: (dynamic val) => val is int ? val : int.parse(val.toString()),
    output: (BigInt val) => val.toInt(),
  );
}