apply method

  1. @override
int apply(
  1. String s1,
  2. String s2
)
override

Returns the score of similarity computed from s1 and s2

Implementation

@override
int apply(String s1, String s2) {
  final diff = DiffUtils.getRatio(s1, s2);
  if (diff.isNaN) {
    return 0;
  }
  return (diff * 100).round();
}