toUpper function
- @Deprecated('The function toUpper() is deprecated. Use the built-in toUpperCase() method instead.')
- String string = ''
Converts a string, as a whole, to uppercase.
Arguments
- (string): The string to convert.
Returns
- (string): The uppercase string.
Implementation
@Deprecated(
'The function toUpper() is deprecated. Use the built-in toUpperCase() method instead.')
String toUpper([String string = '']) {
return string.toUpperCase();
}