getLayoutName function

String getLayoutName(
  1. Layout layout
)

get Layout name

Implementation

String getLayoutName(Layout layout) {
  String value = "layout_native";
  switch (layout) {
    case Layout.custom:
      value = "custom";
      break;
    case Layout.half_width:
      value = "half_width";
      break;
    case Layout.full_width:
      value = "full_width";
      break;
    case Layout.layout_native:
      value = "layout_native";
      break;
  }
  return value;
}