updateRenderObject method - FFocusedOutline class - forui.foundation library (original) (raw)

Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject.

This method should not do anything to update the children of the render object. That should instead be handled by the method that overridesRenderObjectElement.update in the object rendered by this object'screateElement method. See, for example,SingleChildRenderObjectElement.update.

Implementation

@override
// ignore: library_private_types_in_public_api
void updateRenderObject(BuildContext context, _Outline outline) {
  outline
    ..style = style ?? context.theme.style.focusedOutlineStyle
    ..textDirection = Directionality.maybeOf(context) ?? TextDirection.ltr
    ..focused = focused;
}