Detection class final

A detected language and how confident the detector is.

Constructors

Detection(Grammar language, double score, {String reason = 'content'})
Creates a detection result.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
language → Grammar
The detected language.
final
reason → String
Why this language won: file name, shebang or content.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score → double
Detection score. Higher is more confident; only useful for comparing candidates for the same input.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited