scores property

Map<String, num> get scores

Returns a map of all possible detected languages and their scores.

Implementation

Map<String, num> get scores => {
      language: score,
      for (final a in alternatives ?? []) a.language: a.score,
    };