init method

ToastContext init(
  1. BuildContext context
)

Take users Context and saves to avariable

Implementation

ToastContext init(BuildContext context) {
  _instance.context = context;
  return _instance;
}