updatePadding method

dynamic updatePadding(
  1. Orientation orientation,
  2. double widgetWidth,
  3. double widgetHeight
)

Implementation

updatePadding(
    Orientation orientation, double widgetWidth, double widgetHeight) {
  if (rightPadding != 5.0) {
    rightPadding = videoLayoutWidth - 5 - widgetWidth;
  }
  topPadding = min(topPadding, videoLayoutHeight - 5 - widgetHeight);
}