extend method
Implementation
Widget extend({
required String margin,
required String padding,
String? width,
String? height,
String? borderRadius,
String? borderColor,
String? borderWidth,
}) {
return Container(
width: double.tryParse(width ?? "100.0") ?? null,
height: double.tryParse(height ?? "100.0") ?? null,
margin: margin.margin(),
padding: padding.padding(),
decoration: ShapeDecoration(
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(double.tryParse(borderRadius ?? "0.0")!),
)),
);
}