Skip to main content

InteractiveInkFeatureFactory

Trait InteractiveInkFeatureFactory 

Source
pub trait InteractiveInkFeatureFactory: Debug {
    // Required method
    fn create(
        &self,
        app: &mut App,
        controller: AnyMaterialInkController,
        reference_box: AnyRenderBox,
        position: Offset,
        color: Color,
        text_direction: TextDirection,
        contained_ink_well: bool,
        rect_callback: Option<RectCallback>,
        border_radius: Option<BorderRadius>,
        custom_border: Option<ShapeBorderRef>,
        radius: Option<f64>,
        on_removed: Option<Listener>,
    ) -> InteractiveInkFeatureRef;
}
Expand description

An encapsulation of an InteractiveInkFeature constructor used by InkWell, InkResponse, and ThemeData.

Interactive ink feature implementations should provide a static splash_factory value that’s an instance of this class. The splash_factory can be used to configure an InkWell, InkResponse or ThemeData.

See also:

Required Methods§

Source

fn create( &self, app: &mut App, controller: AnyMaterialInkController, reference_box: AnyRenderBox, position: Offset, color: Color, text_direction: TextDirection, contained_ink_well: bool, rect_callback: Option<RectCallback>, border_radius: Option<BorderRadius>, custom_border: Option<ShapeBorderRef>, radius: Option<f64>, on_removed: Option<Listener>, ) -> InteractiveInkFeatureRef

The factory method.

Subclasses should override this method to return a new instance of an InteractiveInkFeature.

Trait Implementations§

Source§

impl PartialEq for dyn InteractiveInkFeatureFactory

Dart’s == on a factory, which no factory overrides: identity.

Source§

fn eq(&self, other: &dyn InteractiveInkFeatureFactory) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§