hasExplicitTypeContext property

bool get hasExplicitTypeContext

Implementation

bool get hasExplicitTypeContext {
  final varDecl = thisOrAncestorOfType<VariableDeclaration>();
  if (varDecl != null) {
    final varList = varDecl.thisOrAncestorOfType<VariableDeclarationList>();
    if (varList?.type != null) {
      return true;
    }
  }

  return false;
}