AlbersProjection constructor

AlbersProjection({
  1. (double, double)? center,
  2. double scale = 1,
  3. Point? translate,
  4. double parallels0 = 29.5,
  5. double parallels1 = 45.5,
})

Creates an Albers projection with standard parallels.

Implementation

AlbersProjection({
  (double, double)? center,
  double scale = 1,
  Point? translate,
  double parallels0 = 29.5,
  double parallels1 = 45.5,
})  : _parallels0 = parallels0,
      _parallels1 = parallels1 {
  if (center != null) this.center = center;
  this.scale = scale;
  if (translate != null) this.translate = translate;
  _recalculate();
}