material method

Material material(
  1. Widget current, {
  2. required MaterialType mType,
  3. Color? mShadowColor,
  4. Color? mColor,
  5. TextStyle? mTextStyle,
  6. required double mElevation,
  7. BorderRadiusGeometry? mBorderRadius,
  8. ShapeBorder? mShape,
  9. required bool mBorderOnForeground,
  10. 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);