takeLast function
Implementation
String takeLast(String? value, int count) {
if (value == null || value.isEmpty || count < 1) return "";
if (value.length > count) {
return value.substring(value.length - count);
} else {
return value;
}
}