Revert the change to token.dart - the validation function is public, which means it would be a breaking change even with all callsites within the project being updated.