weights property

List<ScaleUnit> weights
getter/setter pair

A list of ScaleUnit objects representing different weight units.

Implementation

static List<ScaleUnit> weights = [
  ScaleUnit(
    name: 'gram',
    symbol: 'g',
    subDivisionCount: 10,
    scaleIntervals: List.generate(50,
        (i) => ScaleIntervals(begin: i * 100, end: (i + 1) * 100, scale: 1)),
  ),
  ScaleUnit(
    name: 'tonne',
    symbol: 't',
    subDivisionCount: 10,
    scaleIntervals: List.generate(
        10,
        (i) =>
            ScaleIntervals(begin: i * 1000, end: (i + 1) * 1000, scale: 1)),
  ),
  ScaleUnit(
    name: 'kilogram',
    symbol: 'kg',
    subDivisionCount: 10,
    scaleIntervals: List.generate(35,
        (i) => ScaleIntervals(begin: i * 10, end: (i + 1) * 10, scale: 1)),
  ),
  ScaleUnit(
    name: 'milligram',
    symbol: 'mg',
    subDivisionCount: 10,
    scaleIntervals: List.generate(50,
        (i) => ScaleIntervals(begin: i * 100, end: (i + 1) * 100, scale: 1)),
  ),
  ScaleUnit(
    name: 'microgram',
    symbol: 'µg',
    subDivisionCount: 10,
    scaleIntervals: List.generate(50,
        (i) => ScaleIntervals(begin: i * 100, end: (i + 1) * 100, scale: 1)),
  ),
  ScaleUnit(
    name: 'imperial ton',
    symbol: 'imp ton',
    subDivisionCount: 10,
    scaleIntervals: List.generate(
        5,
        (i) =>
            ScaleIntervals(begin: i * 1016, end: (i + 1) * 1016, scale: 1)),
  ),
  ScaleUnit(
    name: 'US ton',
    symbol: 'ton',
    subDivisionCount: 10,
    scaleIntervals: List.generate(5,
        (i) => ScaleIntervals(begin: i * 907, end: (i + 1) * 907, scale: 1)),
  ),
  ScaleUnit(
    name: 'stone',
    symbol: 'st',
    subDivisionCount: 10,
    scaleIntervals: List.generate(
        10, (i) => ScaleIntervals(begin: i * 6, end: (i + 1) * 6, scale: 1)),
  ),
  ScaleUnit(
    name: 'pound',
    symbol: 'lb',
    subDivisionCount: 10,
    scaleIntervals: List.generate(15,
        (i) => ScaleIntervals(begin: i * 10, end: (i + 1) * 10, scale: 1)),
  ),
  ScaleUnit(
    name: 'ounce',
    symbol: 'oz',
    subDivisionCount: 10,
    scaleIntervals: List.generate(20,
        (i) => ScaleIntervals(begin: i * 16, end: (i + 1) * 16, scale: 1)),
  ),
];