Result<T> constructor

Result<T>({
  1. required T item,
  2. List<ResultDetails<T>> matches = const [],
  3. double score = 0,
})

Instantiates it

Implementation

Result({
  required this.item,
  this.matches = const [],
  this.score = 0,
});