call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FDividerStyles(...));

Implementation

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