material method
Material
material(
- Widget current, {
- required MaterialType mType,
- Color? mShadowColor,
- Color? mColor,
- TextStyle? mTextStyle,
- required double mElevation,
- BorderRadiusGeometry? mBorderRadius,
- ShapeBorder? mShape,
- required bool mBorderOnForeground,
- required Clip mClipBehavior,
Implementation
Material material(Widget current,
{required MaterialType mType,
Color? mShadowColor,
Color? mColor,
TextStyle? mTextStyle,
required double mElevation,
BorderRadiusGeometry? mBorderRadius,
ShapeBorder? mShape,
required bool mBorderOnForeground,
required Clip mClipBehavior}) =>
Material(
color: mColor,
type: mType,
elevation: mElevation,
shadowColor: mShadowColor,
textStyle: mTextStyle,
borderRadius: (mShape != null || shape != null) ? null : borderRadius,
shape: mShape ?? shape,
borderOnForeground: mBorderOnForeground,
clipBehavior: mClipBehavior,
child: current);