useToast function
Implementation
Toaster useToast() {
final toaster = Toaster();
final context = useContext();
useEffect(
() {
toaster.init(context);
return;
},
[context.hashCode],
);
return toaster;
}
Toaster useToast() {
final toaster = Toaster();
final context = useContext();
useEffect(
() {
toaster.init(context);
return;
},
[context.hashCode],
);
return toaster;
}