padding property

EdgeInsets get padding

Implementation

EdgeInsets get padding {
  switch (gravity) {
    case ToastGravity.bottom:
      return EdgeInsets.only(bottom: verticalOffset);
    case ToastGravity.top:
      return EdgeInsets.only(top: verticalOffset);
    case ToastGravity.center:
    default:
      return EdgeInsets.only(top: verticalOffset);
  }
}