fuzzy icon indicating copy to clipboard operation
fuzzy copied to clipboard

Example does not work

Open ltOgt opened this issue 4 years ago • 0 comments

import 'package:fuzzy/fuzzy.dart';

void main() {
  final fuse = Fuzzy(['apple', 'banana', 'orange']);

  final result = fuse.search('ran');

  result.map((r) => r.output.first.value).forEach(print);
  //                  ^^^^^^ The getter 'output' isn't defined for the type 'Result<String>'
}

Should probably be r.matches instead

ltOgt avatar Feb 02 '22 12:02 ltOgt