live WEB search

This commit is contained in:
Mehul Ahal 2022-12-23 11:20:46 +01:00 committed by Mguy13
parent 47945dbec7
commit 4ade7f1682
19 changed files with 503 additions and 59 deletions

View file

@ -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;
}

View file

@ -0,0 +1,3 @@
extension IterableExtensions<T> on Iterable<T> {
Iterable<T> get deepCopy => toList(growable: false);
}

View 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);
}