SphereImage class

Represents an image mapped onto a sphere.

The SphereImage class contains information about the image, its radius, origin, and offset.

Example usage:

final image = Image.asset('assets/earth.jpg');
final sphereImage = SphereImage(
  image: image,
  radius: 100,
  origin: Offset(0, 0),
  offset: Offset(10, 10),
);

Constructors

SphereImage({required Image image, required double radius, required Offset origin, required Offset offset})

Properties

hashCode → int
The hash code for this object.
no setterinherited
image → Image
final
offset → Offset
final
origin → Offset
final
radius → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited