live WEB search
This commit is contained in:
parent
47945dbec7
commit
4ade7f1682
19 changed files with 503 additions and 59 deletions
|
@ -6,4 +6,6 @@ abstract class ConstValues {
|
|||
static const int numberOfImages = 20;
|
||||
static const int minImageSize = 50;
|
||||
static const int maxImageSize = 100;
|
||||
|
||||
static const int defaultEmulatedLatencyMillis = 75;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
extension IterableExtensions<T> on Iterable<T> {
|
||||
Iterable<T> get deepCopy => toList(growable: false);
|
||||
}
|
9
lib/features/core/data/extensions/random_extensions.dart
Normal file
9
lib/features/core/data/extensions/random_extensions.dart
Normal file
|
@ -0,0 +1,9 @@
|
|||
import 'dart:math';
|
||||
|
||||
extension RandomExtensions on Random {
|
||||
int nextIntInRange({
|
||||
required int min,
|
||||
required int max,
|
||||
}) =>
|
||||
min + nextInt(max + 1 - min);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue