p-hatan/ mirror

pub repository

mirror.p-hatan.ir

plugin

0.2.0+1

Support for building plugins.

This package is discontinued upstream.

Download archive

Readme

plugin

Support for building plugins in Dart.

This project defines a simple framework for defining plugins. A plugin is the unit of extensibility for a host application.

An extension point represents one way of extending the host application. For example, a file viewer application might define an extension point to allow viewers for new file types to be added to the application.

The host application must provide at least one extension point that plugins can extend. Every extension point must have a unique name associated with it, and should specify the type of the objects that will be accepted as extensions. In the example above, the extension point might require that all extensions implement the interface FileViewer.

Any plugin can define extension points that other plugins can extend. The host application contributes its own extension point(s) by defining a plugin.

An extension is an object that a plugin associates with a particular extension point. To continue the example, a plugin that supports the viewing of .gif files would create an instance of GifFileViewer, a class that implements FileViewer.

The framework in this package then connects the defined extensions with the defined extension points so that the separately contributed plugins can coordinate to accomplish the larger goal.

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

Changelog

0.0.1

  • Initial version

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add plugin
pubspec.yaml
name: plugin
version: 0.2.0+1
author: Dart Team <misc@dartlang.org>
description: Support for building plugins.
homepage: https://github.com/dart-lang/plugin
environment:
  sdk: '>=1.0.0 <2.0.0-dev.infinity'
dev_dependencies:
  test: any

Version history

VersionPublishedArchiveSHA-256
0.1.02015-04-06T17:17:15.326690ZDownloadef2a89234c56f64754719eac86ff4b105468b1ebe81718d4727cf9c28861f72b
0.2.02016-05-10T16:15:24.106ZDownload21dc363e742b04cbdace0835960ef32aca27511302738f3439abb90b289870d9
0.2.0+12017-07-20T16:03:35.917ZDownloadfca1f2589f6c498b2538b61acf2f15ceb0d7bc8531c3c65c2731939fdb6beffb
0.2.0+22017-09-29T17:07:04.120579ZDownloadb7e916d5a1b7a03681dfc665bf30a88bc3cc2dacb27b94b13d6bd5f265c5146c
0.2.0+32018-07-17T20:27:28.101332ZDownloada7a98283e05fb8dc235e7aad6f19b6186f924b9cd72aa3832fd5f6ed11d12975

Dependencies

No direct dependencies declared.