Skip to content

Example does not work #24

Open
Open
@ltOgt

Description

@ltOgt
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions