call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FItemStyle(...));

Implementation

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