endsWith method

bool? endsWith(
  1. String other
)

Returns true if this string ends with other. For example:

'Dart'.endsWith('t'); // true

Implementation

bool? endsWith(String other) {
  return value?.endsWith(other);
}