MaterialSlice class
A class that can be used as a child to MergeableMaterial. It is a slice of Material that animates merging with other slices.
All MaterialSlice objects need a LocalKey.
- Inheritance
-
- Object
- MergeableMaterialItem
- MaterialSlice
Constructors
- MaterialSlice({required LocalKey key, required Widget child, Color? color})
-
Creates a slice of Material that's mergeable within a
MergeableMaterial.
const
Properties
- child → Widget
-
The contents of this slice.
final
- color → Color?
-
Defines the color for the slice.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → LocalKey
-
The key for this item of the list.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited