call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FCardStyle(...));

Implementation

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