apprepub_script 0.2.0 copy "apprepub_script: ^0.2.0" to clipboard
apprepub_script: ^0.2.0 copied to clipboard

outdated

The basic data-structure for Apprepub.

ApprepubScript #

This library contains and exposes thye main data-structure in Apprepub platform, which is ApprepubScript, all other Apprepub should 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
30
pub points
0%
popularity

Publisher

unverified uploader

The basic data-structure for Apprepub.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

More

Packages that depend on apprepub_script