initials method

  1. @override
List<String> initials({
  1. bool withMore = false,
})
override

Gets the initials of the first name.

Implementation

@override
List<String> initials({bool withMore = false}) {
  return List<String>.unmodifiable([
    _initial,
    if (withMore && hasMore) ..._more.map((n) => n.initials().first),
  ]);
}