assumeWidget function

Widget? assumeWidget(
  1. BuildContext context,
  2. dynamic item
)

Implementation

Widget? assumeWidget(BuildContext context, dynamic item) {
  assert(item is Widget?, 'Item must be a widget!');
  return item as Widget?;
}