toUpper function

  1. @Deprecated('The function toUpper() is deprecated. Use the built-in toUpperCase() method instead.')
String toUpper([
  1. 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();
}