AutomaticNotchedShape class

A NotchedShape created from ShapeBorders.

Two shapes can be provided. The host is the shape of the widget that uses the NotchedShape (typically a BottomAppBar). The guest is subtracted from the host to create the notch (typically to make room for a FloatingActionButton).

Inheritance

Constructors

AutomaticNotchedShape(ShapeBorder host, [ShapeBorder? guest])
Creates a NotchedShape that is defined by two ShapeBorders.
const

Properties

guest → ShapeBorder?
The shape to subtract from the host to make the notch.
final
hashCode → int
The hash code for this object.
no setterinherited
host → ShapeBorder
The shape of the widget that uses the NotchedShape (typically a BottomAppBar).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getOuterPath(Rect hostRect, Rect? guestRect) → Path
Creates a Path that describes the outline of the shape.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited