transform method

T transform(
  1. T function(
    1. T
    )
)

Transform this T using the given function.

This should be used in conjunction with copyWith to update deeply nested properties that rely on this T.

Implementation

// This function cannot be implemented directly in [FTransformable] as the callback accepts a self-referencing type.
// It prevents mixed-in types from being inherited.
T transform(T Function(T) function) => function(this);