TalsecApp constructor

TalsecApp({
  1. required TalsecConfig? config,
  2. required TalsecCallback? callback,
})

Constructor checks whether config and callback are provided. Both arguments are MANDATORY. Callback can be provided just as empty TalsecCallback object.

Implementation

TalsecApp({
  required TalsecConfig? config,
  required TalsecCallback? callback,
}) : assert(
        config != null && callback != null,
        'config and callback cannot be null',
      ) {
  _config = config!;
  _callback = callback!;
}