buildDeclarationsForClass method

  1. @override
FutureOr<void> buildDeclarationsForClass(
  1. ClassDeclaration clazz,
  2. MemberDeclarationBuilder builder
)

Implementation

@override
FutureOr<void> buildDeclarationsForClass(ClassDeclaration clazz, MemberDeclarationBuilder builder) {
  builder.declareInLibrary(DeclarationCode.fromString("import 'package:dio/dio.dart';"));
  builder.declareInLibrary(DeclarationCode.fromString("import 'dart:core';"));
  builder.declareInLibrary(DeclarationCode.fromString("import 'package:dio/src/options.dart';"));
}