getNotchedShape method
Implementation
NotchedShape? getNotchedShape(Map? spec) {
if (spec == null || spec.isEmpty) return null;
final type = spec["_type"] ?? "default";
switch (type) {
case "CircularNotchedRectangle":
return const CircularNotchedRectangle();
case "AutomaticNotchedShape":
final hostShape = getShapeBorder(spec["host"]);
if (hostShape == null) return null;
return AutomaticNotchedShape(hostShape, getShapeBorder(spec["guest"]));
default:
return null;
}
}