MaterialSlice constructor

const MaterialSlice({
  1. required LocalKey key,
  2. required Widget child,
  3. Color? color,
})

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

Implementation

const MaterialSlice({
  required LocalKey key,
  required this.child,
  this.color,
}) : super(key);