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, child);
    }
    return Container(child: child);
  };
}