apprepub_script 0.2.1
apprepub_script: ^0.2.1 copied to clipboard

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();

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


class GreetingScript extends ApprepubScript {
  String name;


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

Features and bugs #

Please file feature requests and bugs at the issue tracker.