FModalSheetStyle.inherit constructor

FModalSheetStyle.inherit({
  1. required FColors colors,
})

Creates a FSheetStyle that inherits its colors from the given FColors.

Implementation

FModalSheetStyle.inherit({required FColors colors})
  : this(
      barrierFilter: (v) => ColorFilter.mode(Color.lerp(Colors.transparent, colors.barrier, v)!, BlendMode.srcOver),
    );