feat : sale in the province
This commit is contained in:
@@ -28,9 +28,8 @@ Map<String, dynamic> buildQueryParams({
|
||||
params['search'] = search;
|
||||
}
|
||||
|
||||
if (value != null) {
|
||||
params['value'] = value;
|
||||
}
|
||||
params['value'] = value ?? '';
|
||||
|
||||
|
||||
if (page != null) {
|
||||
params['page'] = page;
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
extension XString on String {
|
||||
String get separatedByComma {
|
||||
String get separatedByComma {
|
||||
final formatter = NumberFormat('#,###');
|
||||
return formatter.format(this);
|
||||
final number = num.tryParse(this);
|
||||
return number != null ? formatter.format(number) : this;
|
||||
}
|
||||
get clearComma{
|
||||
|
||||
get clearComma {
|
||||
return replaceAll(RegExp(r'\D'), '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user