apprepub_script 0.2.1
apprepub_script: ^0.2.1

Dart native js
Flutter Android iOS web

The basic data-structure for Apprepub.

ApprepubScript #

This library exposes the main data-structure in Apprepub platform, which is ApprepubScript, all other Apprepub elements should extend or be a sub-type of it.

Usage #

A simple usage example is as below in Example (1). However, most probably you won't use it like that but rather you will be creating your custom script by extending ApprepubScript like in Example (2):

// Example (1):
import 'package:apprepub_script/apprepub_script.dart';

main() {
  var  apprepubScript  = ApprepubScript();
  print('${apprepubScript.Name}');

}
// Example (2):
void main() {
  final greetingScript  = GreetingScript('Greeting Script');

  greetingScript.execute();
}


class GreetingScript extends ApprepubScript {
  @override
  String name;

  GreetingScript(this.name);

  @override
  void execute() {
    print('Hi there! 👋🏽 from ${name}');
  }
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
90
pub points
0%
popularity

The basic data-structure for Apprepub.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

osama.najjar.m@gmail.com

License

BSD (LICENSE)

More

Packages that depend on apprepub_script