bool isNumberPressed(String? number){ if((number != null && int.tryParse(number) != null) || number == '-'){ return true; } return false; }