BigInt? toBigInt({BigInt? def}) { try { if (this == null) return def; return BigInt.parse(toString()); } catch (e) { return def; } }