A client wrapper over analysis_server. Instances of the class [Server] manage a connection to a server process, and facilitate communication to and from the server.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: analysis_server_client: ^1.1.3
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:analysis_server_client/handler/connection_handler.dart'; import 'package:analysis_server_client/handler/notification_handler.dart'; import 'package:analysis_server_client/listener/server_listener.dart'; import 'package:analysis_server_client/protocol.dart'; import 'package:analysis_server_client/server.dart';