class ArmstrongNumbers { bool isArmstrongNumber(String number) { BigInt armstrong = BigInt.from(0); for (int i = 0; i < number.length; i++) { armstrong += BigInt.parse(number[i]).pow(number.length); } return armstrong == BigInt.parse(number); } }