generate method
Implementation
@override
String? generate() {
/// must set border width
/// if not set, return null
if (tWidth == null && lWidth == null && rWidth == null && bWidth == null) {
return null;
}
final top = tWidth != null
? (CodeConstrutor("BorderSide")
..add("color", tColor)
..add("width", tWidth)
..add("style", tStyle))
.maybeGenerate()
: null;
final left = lWidth != null
? (CodeConstrutor("BorderSide")
..add("color", lColor)
..add("width", lWidth)
..add("style", lStyle))
.maybeGenerate()
: null;
final right = rWidth != null
? (CodeConstrutor("BorderSide")
..add("color", rColor)
..add("width", rWidth)
..add("style", rStyle))
.maybeGenerate()
: null;
final bottom = bWidth != null
? (CodeConstrutor("BorderSide")
..add("color", bColor)
..add("width", bWidth)
..add("style", bStyle))
.maybeGenerate()
: null;
return (CodeConstrutor("Border")
..add("top", top)
..add("left", left)
..add("right", right)
..add("bottom", bottom))
.generate();
}