MaterialSlice class Null safety

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

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.
read-onlyinherited
key LocalKey
The key for this item of the list.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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