endsWith method - String class - dart:core library (original) (raw)

description

endsWith abstract method

bool endsWith(

  1. 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);