initializer library

An initializer library for guiding setup process with asserestHttpSetup.

This should be imported under the entry point of the program (main()) with http file:

Dart console program

import 'package:libasserest_interface/interface.dart';
import 'package:libasserest_http/http.dart'; // HTTP implementation of Asserest
// Initializer only, does not contains all exported content from above.
import 'package:libasserest_http/initializer.dart';

void main(List<String> args) {
  asserestHttpSetup();
  // Implementation below
}

Flutter

import 'package:flutter/material.dart';

import 'package:libasserest_interface/interface.dart';
import 'package:libasserest_http/http.dart'; // HTTP implementation of Asserest
// Initializer only, does not contains all exported content from above.
import 'package:libasserest_http/initializer.dart';

void main() {
  asserestHttpSetup(); // It's OK to be put without Widget binding.

  WidgetFlutterBinding.ensureInitialized();
  // Any code that required to do after widget binded.
  runApp(const App());
}

Functions

asserestHttpSetup({bool counter = false, bool handleRedirect = true}) → void
Quick setup method for automatically binding HttpPropertyParseProcessor and AsserestHttpTestPlatform into AsserestPropertyParser and AsserestTestAssigner respectively.