line method
Implementation
String line(
{required String text, required String fill, required int longText}) {
final fillCount = longText - text.length;
List<String> left = List.generate(fillCount ~/ 2, (index) => fill);
List<String> right =
List.generate(fillCount - left.length, (index) => fill);
// final left = List.filled(fillCount ~/ 2, fill);
// final right = List.filled(fillCount - left.length, fill);
return left.join() + text + right.join();
}