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§
Sourcefn 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
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.
impl PartialEq for dyn InteractiveInkFeatureFactory
Dart’s == on a factory, which no factory overrides: identity.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".