permyriad method
Converts a number into a per myriad string. The number is multiplied by 10000 and a '‱' sign is appended.
Implementation
String permyriad({int fixed = 2, bool fit = false}) {
String formatted = (this * 10000).toStringAsFixed(fixed);
if (fit) {
formatted = formatted.replaceAll(RegExp(r'\.[0]+$'), '');
}
return '$formatted‱';
}