createRenderObject method - FFocusedOutline class - forui.foundation library (original) (raw)
Creates an instance of the RenderObject class that thisRenderObjectWidget represents, using the configuration described by thisRenderObjectWidget.
This method should not do anything with the children of the render object. That should instead be handled by the method that overridesRenderObjectElement.mount in the object rendered by this object'screateElement method. See, for example,SingleChildRenderObjectElement.mount.
Implementation
@override
RenderObject createRenderObject(BuildContext context) => _Outline(
style ?? context.theme.style.focusedOutlineStyle,
Directionality.maybeOf(context) ?? TextDirection.ltr,
focused: focused,
);