preferredSize property

  1. @override
Size preferredSize
override

Standard overridden method of PreferredSizeWidget.

return Size of this widget with:

  • height = toolbarHeight + bottom.height
  • width = toolbarWidth

Implementation

@override
Size get preferredSize => Size(toolbarWidth,
    (toolbarHeight ?? kToolbarHeight) + (bottom?.preferredSize.height ?? 0));