alignment property

Alignment get alignment

Implementation

Alignment get alignment {
  switch (gravity) {
    case BrnToastGravity.bottom:
      return Alignment.bottomCenter;
    case BrnToastGravity.top:
      return Alignment.topCenter;
    case BrnToastGravity.center:
    default:
      return Alignment.center;
  }
}