scope
  • Overview
  • Fundamentals
    • Installing
    • Scope
      • Creating
      • Using
      • Detecting
      • Nesting
      • Async
      • Single and Sequence factories
      • Returning values
      • Mutable values
    • GlobalScope
    • Overriding
    • Type safety
    • Debugging
    • How Scope Works
  • Guides
    • Best Practice
    • How is Scope different from 'x'
Powered by GitBook
On this page
  1. Fundamentals

Installing

To add Scope to your project...

Depend on it

Run this command from your package root.

With Dart:

 $ dart pub add scope

This will add a line like this to your package's pubspec.yaml (and run dart pub get):

dependencies:
  scope: ^1.0.0

Import it

Now in your Dart code add:

import 'package:scope/scope.dart';

PreviousOverviewNextScope

Last updated 3 years ago