Files
c_trans_mobile/lib/core/extension/extension.dart
jahongireshonqulov 1bf3e41abe Initial commit
2025-10-18 09:40:06 +05:00

14 lines
283 B
Dart

extension SliverCountExtension on int {
int get doubleTheListCount => (this * 2) - 1;
int get exactIndex => (this ~/ 2);
int get lastIndex => (this * 2) - 2;
}
extension VersionParsing on String {
int toVersion() {
return int.tryParse(replaceAll(".", "")) ?? 0;
}
}