call method

  1. @useResult
FResizableStyle call(
  1. Object? _
)
inherited

Returns itself.

Allows FResizableStyle to replace functions that accept and return a FResizableStyle, such as a style's copyWith(...) function.

Example

Given:

void copyWith(FResizableStyle Function(FResizableStyle) nestedStyle) {}

The following:

copyWith((style) => FResizableStyle(...));

Can be replaced with:

copyWith(FResizableStyle(...));

Implementation

@useResult
FResizableStyle call(Object? _) => this as FResizableStyle;