decode static method

ScaleBarSettings decode(
  1. Object result
)

Implementation

static ScaleBarSettings decode(Object result) {
  result as List<Object?>;
  return ScaleBarSettings(
    enabled: result[0] as bool?,
    position: result[1] as OrnamentPosition?,
    marginLeft: result[2] as double?,
    marginTop: result[3] as double?,
    marginRight: result[4] as double?,
    marginBottom: result[5] as double?,
    textColor: result[6] as int?,
    primaryColor: result[7] as int?,
    secondaryColor: result[8] as int?,
    borderWidth: result[9] as double?,
    height: result[10] as double?,
    textBarMargin: result[11] as double?,
    textBorderWidth: result[12] as double?,
    textSize: result[13] as double?,
    isMetricUnits: result[14] as bool?,
    refreshInterval: result[15] as int?,
    showTextBorder: result[16] as bool?,
    ratio: result[17] as double?,
    useContinuousRendering: result[18] as bool?,
  );
}