TouchModel constructor

TouchModel({
  1. required double x,
  2. required double y,
  3. required double z,
  4. required double force,
  5. required bool isShow,
})

Touch point with properties

  • Coordinate x
double x;
  • Coordinate y
double y;
  • Coordinate z (Not supported at the moment)
double z;
  • Pressing force on the liquid element. x
double force;
bool isShow = false;

Implementation

/// * Coordinate [y]
/// ```
/// double y;
/// ```

/// * Coordinate [z] (Not supported at the moment)
/// ```
/// double z;
/// ```

/// * Pressing force on the liquid element. [x]
/// ```
/// double force;
/// ```

/// * whether to show a short touch (Tap) on the [LiquidContainer]
/// ```
/// bool isShow = false;
/// ```
/// *
TouchModel({
  required this.x,
  required this.y,
  required this.z,
  required this.force,
  required this.isShow,
});