call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FStyle(...));

Implementation

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