List<Widget> expandScrollables(final dynamic scrollables) { if (scrollables is List<Widget>) { return scrollables; } else { return [scrollables as Widget]; } }