Merge branch feat/new-ui into feat/messg-reply
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -3,3 +3,12 @@ extension StringExtension on String {
|
||||
return "${this[0].toUpperCase()}${this.substring(1)}";
|
||||
}
|
||||
}
|
||||
|
||||
/// List extension
|
||||
extension ListX<T> on List<T> {
|
||||
/// Insert any item<T> inBetween the list items
|
||||
List<T> insertBetween(T item) => expand((e) sync* {
|
||||
yield item;
|
||||
yield e;
|
||||
}).skip(1).toList(growable: false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user