lastString property

  1. @override
InterpolationStringImpl lastString
override

Return the last element in this interpolation, which is always a string. The string might be empty if there is no text after the last interpolation expression (such as in 'foo $bar').

Implementation

@override
InterpolationStringImpl get lastString =>
    elements.last as InterpolationStringImpl;