to capitalize flutter code example Example: flutter to capital letter 'alphabet'.toUpperCase(); // 'ALPHABET' 'ABC'.toUpperCase(); // 'ABC'