INNER CODE UNIT · Dart
init
YYFlutter/flutter-custom-dialog · lib/flutter_custom_dialog.dart:40
static void init(BuildContext ctx) {
_context = ctx;
}
YYDialog build([BuildContext? ctx]) {
if (ctx == null && _context != null) {
this.context = _context;
return this;
}
this.context = ctx;
return this;
}
YYDialog widget(Widget child) {
this.widgetList.add(child);
return this;
}