mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt: unnecessary_non_null_assertion (#1762)
This commit is contained in:
committed by
GitHub
parent
b7a277a57c
commit
2b3ec77e92
@@ -85,9 +85,9 @@ class _AtMePageState extends State<AtMePage> {
|
||||
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
|
||||
),
|
||||
Success(:var response) =>
|
||||
response?.isNotEmpty == true
|
||||
response != null && response.isNotEmpty
|
||||
? SliverList.separated(
|
||||
itemCount: response!.length,
|
||||
itemCount: response.length,
|
||||
itemBuilder: (context, int index) {
|
||||
if (index == response.length - 1) {
|
||||
_atMeController.onLoadMore();
|
||||
|
||||
@@ -85,9 +85,9 @@ class _ReplyMePageState extends State<ReplyMePage> {
|
||||
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
|
||||
),
|
||||
Success(:var response) =>
|
||||
response?.isNotEmpty == true
|
||||
response != null && response.isNotEmpty
|
||||
? SliverList.separated(
|
||||
itemCount: response!.length,
|
||||
itemCount: response.length,
|
||||
itemBuilder: (context, int index) {
|
||||
if (index == response.length - 1) {
|
||||
_replyMeController.onLoadMore();
|
||||
|
||||
@@ -71,9 +71,9 @@ class _SysMsgPageState extends State<SysMsgPage> {
|
||||
),
|
||||
),
|
||||
Success(:var response) =>
|
||||
response?.isNotEmpty == true
|
||||
response != null && response.isNotEmpty
|
||||
? SliverList.separated(
|
||||
itemCount: response!.length,
|
||||
itemCount: response.length,
|
||||
itemBuilder: (context, int index) {
|
||||
if (index == response.length - 1) {
|
||||
_sysMsgController.onLoadMore();
|
||||
|
||||
Reference in New Issue
Block a user