call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FTileStyle(...));

Implementation

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