trimLastChar property
String
trimLastChar
trimLastChar extension this extension will trim or remove last character from a string
Implementation
String get trimLastChar => this!.substring(0, this!.length - 1);