declaresDouble static method
Whether type is written double or double? - a binding whose
values widen turns into doubles (ghissues32).
Implementation
static bool declaresDouble(STypeAnnotation? type) =>
type is SNamedType && type.name?.name == 'double';