mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
feat: env dropdown selector
This commit is contained in:
@ -2,4 +2,11 @@ extension StringExtension on String {
|
||||
String capitalize() {
|
||||
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
|
||||
}
|
||||
|
||||
String clip(int limit) {
|
||||
if (length <= limit) {
|
||||
return this;
|
||||
}
|
||||
return "${substring(0, limit)}...";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user