fab method Null safety

  1. @override
Widget? fab(
  1. BuildContext context
)
override

Implementation

@override
Widget? fab(BuildContext context) {
  if ((widget != null) && (widget is HasFab)) {
    HasFab hasFab = widget as HasFab;
    return hasFab.fab(context);
  }
  return null;
}