endsWith method - String class - dart:core library (original) (raw)
endsWith abstract method
bool endsWith(
- String other )
Whether this string ends with other
.
For example:
const string = 'Dart is open source';
print(string.endsWith('urce')); // true
Implementation
bool endsWith(String other);