import 'package:flutter_inappwebview_internal_annotations/flutter_inappwebview_internal_annotations.dart';

import 'enum_method.dart';

part 'in_app_webview_rect.g.dart';

///A class that represents a structure that contains the location and dimensions of a rectangle.
@ExchangeableObject()
class InAppWebViewRect_ {
  ///x position
  double x;

  ///y position
  double y;

  ///rect width
  double width;

  ///rect height
  double height;

  @ExchangeableObjectConstructor()
  InAppWebViewRect_({
    required this.x,
    required this.y,
    required this.width,
    required this.height,
  }) {
    assert(this.x >= 0 && this.y >= 0 && this.width >= 0 && this.height >= 0);
  }
}
