declaresDouble static method

bool declaresDouble(
  1. STypeAnnotation? type
)

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';