from static method

Component from({
  1. required String type,
  2. required Component child,
  3. Key? key,
})

Implementation

static Component from({required String type, required Component child, Key? key}) {
  return _Callout(type: type.toLowerCase(), child: child, key: key);
}