Star constructor

Star(
  1. Offset center,
  2. num count,
  3. num ir,
  4. num or, {
  5. num angleOffset = 0,
  6. bool inside = false,
})

Implementation

Star(
  this.center,
  num count,
  this.ir,
  this.or, {
  this.angleOffset = 0,
  this.inside = false,
}){
  if(inside){
    if(ir<=0){
      this.count=3;
    }else{
      this.count=(or/ir)-1;
    }
  }else{
    this.count=count;
  }
}