init static method

TransitionBuilder init({
  1. TransitionBuilder? builder,
})

Implementation

static TransitionBuilder init({
  TransitionBuilder? builder,
}) {
  return (BuildContext context, Widget? child) {
    if (builder != null) {
      return builder(context, GTFToastOverlay(child: child));
    } else {
      return GTFToastOverlay(child: child);
    }
  };
}