MaterialSlice constructor

const MaterialSlice({@required LocalKey key, @required Widget child })

Creates a slice of Material that's mergeable within a MergeableMaterial.

Implementation

const MaterialSlice({
  @required LocalKey key,
  @required this.child,
}) : assert(key != null),
     super(key);