takeLastWhile abstract method

Characters takeLastWhile(
  1. bool test(
    1. String
    )
)

Eagerly selects a trailing sequence of characters.

Checks each character, from last to first, against test, until one is found where test returns false. The characters after the one with the latest index where test returns false are included in the result.

If no characters test false, the entire sequence of character is returned.

Implementation

Characters takeLastWhile(bool Function(String) test);