Toast constructor
Toast({})
Implementation
Toast({
required this.type,
required this.title,
this.subtitle,
this.image,
this.actions,
}) {
List<String> data = [
this.type.index.toString(),
this.title,
this.subtitle ?? '',
this.image?.path ?? ''
]..addAll(actions ?? []);
this.id = ToastFFI.create(
data.toNativeUtf16Array(),
data.length,
);
}